mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
rm some silly logic, better comments
This commit is contained in:
1 parent
fa498287b9
commit
8e59bf766a
7 files changed
+60
-83
No files matched your search
+3
-3
@@ -1,10 +1,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"os"
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCheckRegex(t *testing.T) {
|
||||
@@ -50,7 +50,7 @@ func TestExternalRegex(t *testing.T) {
|
||||
opts.RegexFile = "testregex.txt"
|
||||
opts.loadExternalRegex()
|
||||
leaks := doChecks("aws=\"AKIALALEMEL33243OLIAE",
|
||||
Commit{}, &Repo{url:"someurl"})
|
||||
Commit{}, &Repo{url: "someurl"})
|
||||
if len(leaks) != 2 {
|
||||
// leak from default regex, leak from external
|
||||
t.Error()
|
||||
|
||||
Reference in new issue
Block a user