From ba49396755b08ed319871824b0feb4c51d3230e7 Mon Sep 17 00:00:00 2001 From: zach rice Date: Sat, 3 Nov 2018 11:34:07 -0500 Subject: [PATCH] updating tests --- gitleaks_test.go | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/gitleaks_test.go b/gitleaks_test.go index 6926761e..582848df 100644 --- a/gitleaks_test.go +++ b/gitleaks_test.go @@ -329,7 +329,6 @@ func TestWriteReport(t *testing.T) { Message: "get", Author: "some", File: "sleep", - Branch: "thxu", Date: time.Now(), }, } @@ -444,17 +443,16 @@ func TestAuditRepo(t *testing.T) { } var tests = []struct { - testOpts Options - description string - expectedErrMsg string - numLeaks int - repo *RepoDescriptor - whiteListFiles []*regexp.Regexp - whiteListCommits map[string]bool - whiteListBranches []string - whiteListRepos []*regexp.Regexp - whiteListRegexes []*regexp.Regexp - configPath string + testOpts Options + description string + expectedErrMsg string + numLeaks int + repo *RepoDescriptor + whiteListFiles []*regexp.Regexp + whiteListCommits map[string]bool + whiteListRepos []*regexp.Regexp + whiteListRegexes []*regexp.Regexp + configPath string }{ { repo: leaksRepo,