Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated/fixed the function names of pattern tests for detectors n through o #3691

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "nasdaqdatalink"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNasdaqDataLink_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nethunt/nethunt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
keyword = "nethunt"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNethunt_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/netlify/netlify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "netlify"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNetlify_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/netsuite/netsuite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ token - '%s' token - '%s'`
outputPair2 = validConsumerSecret + validConsumerKey
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNetsuite_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/neutrinoapi/neutrinoapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
keyword = "neutrinoapi"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNeutrinoApi_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "newrelicpersonalapikey"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNewRelicPersonalApiKey_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/newsapi/newsapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "newsapi"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNewsapi_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/newscatcher/newscatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "newscatcher"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNewscatcher_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nexmoapikey/nexmoapikey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
keyword = "nexmoapikey"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNexmoApiKey_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nftport/nftport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "nftport"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNftport_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/ngc/ngc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
keyword = "ngc"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNGC_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/ngrok/ngrok_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "ngrok"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNgrok_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nicereply/nicereply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "nicereply"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNicereply_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nightfall/nightfall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "nightfall"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNightfall_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nimble/nimble_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "nimble"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNimble_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/noticeable/noticeable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "noticeable"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNoticeable_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/notion/notion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "notion"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNotion_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nozbeteams/nozbeteams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "nozbeteams"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNozbeTeams_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/npmtoken/npmtoken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "npmtoken"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNpmToken_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/npmtokenv2/npmtokenv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "npmtokenv2"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNpmToken_New_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nugetapikey/nugetapikey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "nugetapikey"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNugetapikey_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/numverify/numverify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "numverify"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNumverify_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nutritionix/nutritionix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
keyword = "nutritionix"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNutritionix_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/nylas/nylas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "nylas"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestNylas_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/oanda/oanda_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "oanda"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOanda_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/okta/okta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
keyword = "okta"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOkta_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/omnisend/omnisend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "omnisend"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOmnisend_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/onelogin/onelogin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
keyword = "onelogin"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOnelogin_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/onepagecrm/onepagecrm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
keyword = "onepagecrm"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOnepageCRM_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/oopspam/oopspam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "oopspam"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOOPSpam_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/opencagedata/opencagedata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "opencagedata"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOpenCageData_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/openuv/openuv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "openuv"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOpenuv_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/openvpn/openvpn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
keyword = "openvpn"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOpenvpn_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/openweather/openweather_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "openweather"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOpenWeather_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/opsgenie/opsgenie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "opsgenie"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOpsgenie_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/optimizely/optimizely_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "optimizely"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOptimizely_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/overloop/overloop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "overloop"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOverloop_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/detectors/owlbot/owlbot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
keyword = "owlbot"
)

func TestZohocrm_Pattern(t *testing.T) {
func TestOwlbot_Pattern(t *testing.T) {
d := Scanner{}
ahoCorasickCore := ahocorasick.NewAhoCorasickCore([]detectors.Detector{d})
tests := []struct {
Expand Down
Loading