updating tests

This commit is contained in:
zach rice committed 2018-11-03 11:34:07 -05:00
1 parent 40240cb5ee
commit ba49396755
1 file changed
+10 -12
+10 -12
View File
@@ -329,7 +329,6 @@ func TestWriteReport(t *testing.T) {
Message: "get", Message: "get",
Author: "some", Author: "some",
File: "sleep", File: "sleep",
Branch: "thxu",
Date: time.Now(), Date: time.Now(),
}, },
} }
@@ -444,17 +443,16 @@ func TestAuditRepo(t *testing.T) {
} }
var tests = []struct { var tests = []struct {
testOpts Options testOpts Options
description string description string
expectedErrMsg string expectedErrMsg string
numLeaks int numLeaks int
repo *RepoDescriptor repo *RepoDescriptor
whiteListFiles []*regexp.Regexp whiteListFiles []*regexp.Regexp
whiteListCommits map[string]bool whiteListCommits map[string]bool
whiteListBranches []string whiteListRepos []*regexp.Regexp
whiteListRepos []*regexp.Regexp whiteListRegexes []*regexp.Regexp
whiteListRegexes []*regexp.Regexp configPath string
configPath string
}{ }{
{ {
repo: leaksRepo, repo: leaksRepo,