|
@@ -6,7 +6,7 @@ import (
|
|
|
|
|
|
|
|
func TestCheckRegex(t *testing.T) {
|
|
func TestCheckRegex(t *testing.T) {
|
|
|
var results []Leak
|
|
var results []Leak
|
|
|
- opts := &Options{
|
|
|
|
|
|
|
+ opts = &Options{
|
|
|
Concurrency: 10,
|
|
Concurrency: 10,
|
|
|
B64EntropyCutoff: 70,
|
|
B64EntropyCutoff: 70,
|
|
|
HexEntropyCutoff: 40,
|
|
HexEntropyCutoff: 40,
|
|
@@ -22,7 +22,7 @@ func TestCheckRegex(t *testing.T) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
for k, v := range checks {
|
|
for k, v := range checks {
|
|
|
- results = doChecks(k, commit, opts, repo)
|
|
|
|
|
|
|
+ results = doChecks(k, commit, &repo)
|
|
|
if v != len(results) {
|
|
if v != len(results) {
|
|
|
t.Errorf("regexCheck failed on string %s", k)
|
|
t.Errorf("regexCheck failed on string %s", k)
|
|
|
}
|
|
}
|