mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
fixing eof location bug (#756)
This commit is contained in:
1 parent
0f2ffee6f9
commit
3d3d801729
2 files changed
+25
-1
No files matched your search
@@ -34,6 +34,10 @@ func TestDetectFindings(t *testing.T) {
|
||||
File: "tmp.go",
|
||||
RuleID: "aws-access-key",
|
||||
Tags: []string{"key", "AWS"},
|
||||
StartLine: 1,
|
||||
EndLine: 1,
|
||||
StartColumn: 15,
|
||||
EndColumn: 34,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -69,6 +73,10 @@ func TestDetectFindings(t *testing.T) {
|
||||
RuleID: "discord-api-key",
|
||||
Tags: []string{},
|
||||
Entropy: 3.7906237,
|
||||
StartLine: 1,
|
||||
EndLine: 1,
|
||||
StartColumn: 7,
|
||||
EndColumn: 93,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -91,6 +99,10 @@ func TestDetectFindings(t *testing.T) {
|
||||
RuleID: "generic-api-key",
|
||||
Tags: []string{},
|
||||
Entropy: 3.7906237,
|
||||
StartLine: 1,
|
||||
EndLine: 1,
|
||||
StartColumn: 22,
|
||||
EndColumn: 93,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user