mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
fix deduplication issue caused by clobbered findings (#742)
* fix deduplication issue caused by clobbered findings * fix index * remove indexing, slow is better than wrong
This commit is contained in:
1 parent
84e285e4ce
commit
ce42947cae
17 files changed
+81
-66
No files matched your search
@@ -16,13 +16,13 @@ const (
|
||||
|
||||
func TestReport(t *testing.T) {
|
||||
tests := []struct {
|
||||
findings []*Finding
|
||||
findings []Finding
|
||||
ext string
|
||||
wantEmpty bool
|
||||
}{
|
||||
{
|
||||
ext: "json",
|
||||
findings: []*Finding{
|
||||
findings: []Finding{
|
||||
{
|
||||
RuleID: "test-rule",
|
||||
},
|
||||
@@ -30,7 +30,7 @@ func TestReport(t *testing.T) {
|
||||
},
|
||||
{
|
||||
ext: ".json",
|
||||
findings: []*Finding{
|
||||
findings: []Finding{
|
||||
{
|
||||
RuleID: "test-rule",
|
||||
},
|
||||
@@ -38,7 +38,7 @@ func TestReport(t *testing.T) {
|
||||
},
|
||||
{
|
||||
ext: ".jsonj",
|
||||
findings: []*Finding{
|
||||
findings: []Finding{
|
||||
{
|
||||
RuleID: "test-rule",
|
||||
},
|
||||
@@ -47,7 +47,7 @@ func TestReport(t *testing.T) {
|
||||
},
|
||||
{
|
||||
ext: ".csv",
|
||||
findings: []*Finding{
|
||||
findings: []Finding{
|
||||
{
|
||||
RuleID: "test-rule",
|
||||
},
|
||||
@@ -55,7 +55,7 @@ func TestReport(t *testing.T) {
|
||||
},
|
||||
{
|
||||
ext: "csv",
|
||||
findings: []*Finding{
|
||||
findings: []Finding{
|
||||
{
|
||||
RuleID: "test-rule",
|
||||
},
|
||||
@@ -63,7 +63,7 @@ func TestReport(t *testing.T) {
|
||||
},
|
||||
{
|
||||
ext: "CSV",
|
||||
findings: []*Finding{
|
||||
findings: []Finding{
|
||||
{
|
||||
RuleID: "test-rule",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user