Skip to content

Commit 9609928

Browse files
committed
rm 1password detect test since we test it in cfg gen
1 parent 23cb69f commit 9609928

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

detect/detect_test.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -68,29 +68,6 @@ func TestDetect(t *testing.T) {
6868
}{
6969
// General
7070
"valid allow comment (1)": {
71-
cfgName: "simple",
72-
fragment: Fragment{
73-
Raw: `Key: A3-ASWWYB-798JRY-LJVD4-23DC2-86TVM-H43EB`,
74-
FilePath: "tmp.go",
75-
},
76-
expectedFindings: []report.Finding{
77-
{
78-
Description: "1Password Secret Key",
79-
Secret: "A3-ASWWYB-798JRY-LJVD4-23DC2-86TVM-H43EB",
80-
Match: "A3-ASWWYB-798JRY-LJVD4-23DC2-86TVM-H43EB",
81-
Line: "Key: A3-ASWWYB-798JRY-LJVD4-23DC2-86TVM-H43EB",
82-
File: "tmp.go",
83-
RuleID: "1password-secret-key",
84-
Tags: []string{"1Password"},
85-
StartLine: 0,
86-
EndLine: 0,
87-
StartColumn: 6,
88-
EndColumn: 45,
89-
Entropy: 4.3153114,
90-
},
91-
},
92-
},
93-
{
9471
cfgName: "simple",
9572
fragment: Fragment{
9673
Raw: `awsToken := \"AKIALALEMEL33243OKIA\ // gitleaks:allow"`,

0 commit comments

Comments
 (0)