mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
fixing tests
This commit is contained in:
1 parent
d4925443c8
commit
79c3f99165
2 files changed
+16
-2
No files matched your search
@@ -560,6 +560,22 @@ func TestAuditRepo(t *testing.T) {
|
||||
},
|
||||
numLeaks: 2,
|
||||
},
|
||||
{
|
||||
repo: leaksRepo,
|
||||
description: "Audit a specific commit",
|
||||
numLeaks: 1,
|
||||
testOpts: Options{
|
||||
Commit: "cb5599aeed261b2c038aa4729e2d53ca050a4988",
|
||||
},
|
||||
},
|
||||
{
|
||||
repo: leaksRepo,
|
||||
description: "Audit a specific commit no leaks",
|
||||
numLeaks: 0,
|
||||
testOpts: Options{
|
||||
Commit: "2b033e012eee364fc41b4ab7c5db1497399b8e67",
|
||||
},
|
||||
},
|
||||
{
|
||||
repo: leaksRepo,
|
||||
description: "toml whitelist regex",
|
||||
|
||||
Reference in new issue
Block a user