mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
some barebones tests
This commit is contained in:
1 parent
0d75136c1c
commit
25736d115f
3 files changed
+3
-4
No files matched your search
+2
-2
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
func TestCheckRegex(t *testing.T) {
|
||||
var results []Leak
|
||||
opts := &Options{
|
||||
opts = &Options{
|
||||
Concurrency: 10,
|
||||
B64EntropyCutoff: 70,
|
||||
HexEntropyCutoff: 40,
|
||||
@@ -22,7 +22,7 @@ func TestCheckRegex(t *testing.T) {
|
||||
}
|
||||
|
||||
for k, v := range checks {
|
||||
results = doChecks(k, commit, opts, repo)
|
||||
results = doChecks(k, commit, &repo)
|
||||
if v != len(results) {
|
||||
t.Errorf("regexCheck failed on string %s", k)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user