Skip to content

Commit

Permalink
add info to test struct
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Jan 5, 2024
1 parent 33f52b4 commit edfef60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/engine/ahocorasickcore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func (d testDetectorV1) FromData(ctx context.Context, verify bool, data []byte)
return make([]detectors.Result, 0), nil
}

func (d testDetectorV1) Info() detectors.Info {
return detectors.Info{}
}

func (d testDetectorV1) Keywords() []string {
return []string{"a", "b"}
}
Expand All @@ -39,6 +43,10 @@ func (d testDetectorV2) FromData(ctx context.Context, verify bool, data []byte)
return make([]detectors.Result, 0), nil
}

func (d testDetectorV2) Info() detectors.Info {
return detectors.Info{}
}

func (d testDetectorV2) Keywords() []string {
return []string{"a"}
}
Expand Down

0 comments on commit edfef60

Please sign in to comment.