updated readme, better logging

This commit is contained in:
zricethezav committed 2018-02-25 16:10:44 -06:00
1 parent c104ff9157
commit 1cecd5e090
7 files changed
+133 -90

No files matched your search

+5 -1
View File
@@ -12,13 +12,17 @@ func TestCheckRegex(t *testing.T) {
HexEntropyCutoff: 40,
Entropy: false,
}
repo := RepoDesc{
url: "someurl",
}
commit := Commit{}
checks := map[string]int{
"aws=\"AKIALALEMEL33243OLIAE": 1,
"aws\"afewafewafewafewaf\"": 0,
}
for k, v := range checks {
results = doChecks(k, "commit", opts)
results = doChecks(k, commit, opts, repo)
if v != len(results) {
t.Errorf("regexCheck failed on string %s", k)
}