fixing audit repo bug (#101)

* fixing audit repo bug

* bumping version
This commit is contained in:
Zachary Rice authored and GitHub committed 2018-10-02 12:34:05 -05:00
1 parent d299b5aa7f
commit 2ba97d0fa3
3 files changed
+36 -6

No files matched your search

+24
View File
@@ -239,6 +239,30 @@ func TestRunAudit(t *testing.T) {
numLeaks: 0,
expectedErrMsg: "unable to generate ssh key: open reallyreallyreallyreallywrongpath: no such file or directory",
},
{
testOpts: Options{
Repo: "https://github.com/gitleakstest/gronit.git",
},
description: "test leak",
numLeaks: 2,
expectedErrMsg: "",
},
{
testOpts: Options{
Repo: "https://github.com/gitleakstest/h1domains.git",
},
description: "test clean",
numLeaks: 0,
expectedErrMsg: "",
},
{
testOpts: Options{
Repo: "https://github.com/gitleakstest/empty.git",
},
description: "test empty",
numLeaks: 0,
expectedErrMsg: "reference not found",
},
}
g := goblin.Goblin(t)
for _, test := range tests {