adding test, cancelfunc (for go vet)

This commit is contained in:
zricethezav committed 2020-01-19 10:07:01 -05:00
1 parent 62e74b2b18
commit 2f07b96333
2 files changed
+59 -32

No files matched your search

+20
View File
@@ -213,6 +213,26 @@ func TestAudit(t *testing.T) {
},
wantEmpty: true,
},
{
description: "test local repo one aws leak timeout",
opts: options.Options{
RepoPath: "../test_data/test_repos/test_repo_1",
Report: "../test_data/test_local_repo_one_aws_leak.json.got",
ReportFormat: "json",
Timeout: "10ns",
},
wantEmpty: true,
},
{
description: "test local repo one aws leak long timeout",
opts: options.Options{
RepoPath: "../test_data/test_repos/test_repo_1",
Report: "../test_data/test_local_repo_one_aws_leak.json.got",
ReportFormat: "json",
Timeout: "2m",
},
wantPath: "../test_data/test_local_repo_one_aws_leak.json",
},
}
for _, test := range tests {