mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
updated readme, better logging
This commit is contained in:
1 parent
c104ff9157
commit
1cecd5e090
7 files changed
+133
-90
No files matched your search
+5
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user