Single commit repo (#95)

* supporting repos with one commit
This commit is contained in:
Zachary Rice authored and GitHub committed 2018-09-26 14:28:22 -05:00
1 parent 8eb28cbb4c
commit fad98cbde2
216 files changed
+27523 -3828

No files matched your search

+6 -2
View File
@@ -401,12 +401,14 @@ func TestAuditRepo(t *testing.T) {
numLeaks: 0,
},
{
// note this double counts the first commit since we are whitelisting
// a "bad" first commit
repo: leaksRepo,
description: "two leaks present whitelist bad commit",
whiteListCommits: map[string]bool{
"eaeffdc65b4c73ccb67e75d96bd8743be2c85973": true,
},
numLeaks: 1,
numLeaks: 2,
},
{
repo: leaksRepo,
@@ -438,10 +440,12 @@ func TestAuditRepo(t *testing.T) {
numLeaks: 0,
},
{
// note this double counts the first commit since we are whitelisting
// a "bad" first commit
repo: leaksRepo,
description: "toml whitelist commit",
configPath: path.Join(configsDir, "commit"),
numLeaks: 1,
numLeaks: 2,
},
}