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
98aeee9b1d
commit
e288db29a8
1 file changed
+7
-7
+7
-7
@@ -634,28 +634,28 @@ func TestAuditRepo(t *testing.T) {
|
|||||||
testOpts: Options{
|
testOpts: Options{
|
||||||
Entropy: 4.7,
|
Entropy: 4.7,
|
||||||
},
|
},
|
||||||
numLeaks: 7,
|
numLeaks: 6,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
repo: leaksRepo,
|
repo: leaksRepo,
|
||||||
description: "Audit until specific commit",
|
description: "Audit until specific commit",
|
||||||
numLeaks: 1,
|
numLeaks: 2,
|
||||||
testOpts: Options{
|
testOpts: Options{
|
||||||
Commit: "f6839959b7bbdcd23008f1fb16f797f35bcd3a0c",
|
Commit: "f6839959b7bbdcd23008f1fb16f797f35bcd3a0c",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
repo: leaksRepo,
|
repo: leaksRepo,
|
||||||
description: "commit depth = 1, no leaks",
|
description: "commit depth = 1, one leak",
|
||||||
numLeaks: 0,
|
numLeaks: 1,
|
||||||
testOpts: Options{
|
testOpts: Options{
|
||||||
Depth: 1,
|
Depth: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
repo: leaksRepo,
|
repo: leaksRepo,
|
||||||
description: "commit depth = 2, one leak",
|
description: "commit depth = 2, two leaks",
|
||||||
numLeaks: 1,
|
numLeaks: 2,
|
||||||
testOpts: Options{
|
testOpts: Options{
|
||||||
Depth: 2,
|
Depth: 2,
|
||||||
},
|
},
|
||||||
@@ -663,7 +663,7 @@ func TestAuditRepo(t *testing.T) {
|
|||||||
{
|
{
|
||||||
repo: leaksRepo,
|
repo: leaksRepo,
|
||||||
description: "toml entropy range",
|
description: "toml entropy range",
|
||||||
numLeaks: 422,
|
numLeaks: 283,
|
||||||
configPath: path.Join(configsDir, "entropy"),
|
configPath: path.Join(configsDir, "entropy"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user