From fe6773ea43e63700f29426c89e861aac85f0ba72 Mon Sep 17 00:00:00 2001 From: Nabeel Alam Date: Thu, 28 Nov 2024 19:32:08 +0500 Subject: [PATCH] updated the function names of new pattern tests for detetors n through o (#3691) --- pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go | 2 +- pkg/detectors/nethunt/nethunt_test.go | 2 +- pkg/detectors/netlify/netlify_test.go | 2 +- pkg/detectors/netsuite/netsuite_test.go | 2 +- pkg/detectors/neutrinoapi/neutrinoapi_test.go | 2 +- .../newrelicpersonalapikey/newrelicpersonalapikey_test.go | 2 +- pkg/detectors/newsapi/newsapi_test.go | 2 +- pkg/detectors/newscatcher/newscatcher_test.go | 2 +- pkg/detectors/nexmoapikey/nexmoapikey_test.go | 2 +- pkg/detectors/nftport/nftport_test.go | 2 +- pkg/detectors/ngc/ngc_test.go | 2 +- pkg/detectors/ngrok/ngrok_test.go | 2 +- pkg/detectors/nicereply/nicereply_test.go | 2 +- pkg/detectors/nightfall/nightfall_test.go | 2 +- pkg/detectors/nimble/nimble_test.go | 2 +- pkg/detectors/noticeable/noticeable_test.go | 2 +- pkg/detectors/notion/notion_test.go | 2 +- pkg/detectors/nozbeteams/nozbeteams_test.go | 2 +- pkg/detectors/npmtoken/npmtoken_test.go | 2 +- pkg/detectors/npmtokenv2/npmtokenv2_test.go | 2 +- pkg/detectors/nugetapikey/nugetapikey_test.go | 2 +- pkg/detectors/numverify/numverify_test.go | 2 +- pkg/detectors/nutritionix/nutritionix_test.go | 2 +- pkg/detectors/nylas/nylas_test.go | 2 +- pkg/detectors/oanda/oanda_test.go | 2 +- pkg/detectors/okta/okta_test.go | 2 +- pkg/detectors/omnisend/omnisend_test.go | 2 +- pkg/detectors/onelogin/onelogin_test.go | 2 +- pkg/detectors/onepagecrm/onepagecrm_test.go | 2 +- pkg/detectors/oopspam/oopspam_test.go | 2 +- pkg/detectors/opencagedata/opencagedata_test.go | 2 +- pkg/detectors/openuv/openuv_test.go | 2 +- pkg/detectors/openvpn/openvpn_test.go | 2 +- pkg/detectors/openweather/openweather_test.go | 2 +- pkg/detectors/opsgenie/opsgenie_test.go | 2 +- pkg/detectors/optimizely/optimizely_test.go | 2 +- pkg/detectors/overloop/overloop_test.go | 2 +- pkg/detectors/owlbot/owlbot_test.go | 2 +- 38 files changed, 38 insertions(+), 38 deletions(-) diff --git a/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go index 3d88732c2375..13bd7b235eef 100644 --- a/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go +++ b/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go @@ -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 { diff --git a/pkg/detectors/nethunt/nethunt_test.go b/pkg/detectors/nethunt/nethunt_test.go index 9511af44f5cd..4a75b4e3ed0e 100644 --- a/pkg/detectors/nethunt/nethunt_test.go +++ b/pkg/detectors/nethunt/nethunt_test.go @@ -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 { diff --git a/pkg/detectors/netlify/netlify_test.go b/pkg/detectors/netlify/netlify_test.go index 215cd40b8ee1..5b95edde3b57 100644 --- a/pkg/detectors/netlify/netlify_test.go +++ b/pkg/detectors/netlify/netlify_test.go @@ -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 { diff --git a/pkg/detectors/netsuite/netsuite_test.go b/pkg/detectors/netsuite/netsuite_test.go index e6370da78a87..62e44d4f0425 100644 --- a/pkg/detectors/netsuite/netsuite_test.go +++ b/pkg/detectors/netsuite/netsuite_test.go @@ -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 { diff --git a/pkg/detectors/neutrinoapi/neutrinoapi_test.go b/pkg/detectors/neutrinoapi/neutrinoapi_test.go index 0e9c095066cc..0e7e8704f90c 100644 --- a/pkg/detectors/neutrinoapi/neutrinoapi_test.go +++ b/pkg/detectors/neutrinoapi/neutrinoapi_test.go @@ -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 { diff --git a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go index 3605a3b16278..d369fdd86705 100644 --- a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go +++ b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go @@ -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 { diff --git a/pkg/detectors/newsapi/newsapi_test.go b/pkg/detectors/newsapi/newsapi_test.go index 06f2739634e3..4a814875a2bd 100644 --- a/pkg/detectors/newsapi/newsapi_test.go +++ b/pkg/detectors/newsapi/newsapi_test.go @@ -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 { diff --git a/pkg/detectors/newscatcher/newscatcher_test.go b/pkg/detectors/newscatcher/newscatcher_test.go index bf3155d646ef..fadb05f0021d 100644 --- a/pkg/detectors/newscatcher/newscatcher_test.go +++ b/pkg/detectors/newscatcher/newscatcher_test.go @@ -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 { diff --git a/pkg/detectors/nexmoapikey/nexmoapikey_test.go b/pkg/detectors/nexmoapikey/nexmoapikey_test.go index e235bdc5edfc..5fdcaf49bfbe 100644 --- a/pkg/detectors/nexmoapikey/nexmoapikey_test.go +++ b/pkg/detectors/nexmoapikey/nexmoapikey_test.go @@ -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 { diff --git a/pkg/detectors/nftport/nftport_test.go b/pkg/detectors/nftport/nftport_test.go index 2e632e5b658d..e0aff573dcd3 100644 --- a/pkg/detectors/nftport/nftport_test.go +++ b/pkg/detectors/nftport/nftport_test.go @@ -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 { diff --git a/pkg/detectors/ngc/ngc_test.go b/pkg/detectors/ngc/ngc_test.go index 47db2a3ca229..ed9c78f1d864 100644 --- a/pkg/detectors/ngc/ngc_test.go +++ b/pkg/detectors/ngc/ngc_test.go @@ -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 { diff --git a/pkg/detectors/ngrok/ngrok_test.go b/pkg/detectors/ngrok/ngrok_test.go index 8fab43a1191d..85f8199001e2 100644 --- a/pkg/detectors/ngrok/ngrok_test.go +++ b/pkg/detectors/ngrok/ngrok_test.go @@ -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 { diff --git a/pkg/detectors/nicereply/nicereply_test.go b/pkg/detectors/nicereply/nicereply_test.go index 466cd9a17e77..5990ccda009b 100644 --- a/pkg/detectors/nicereply/nicereply_test.go +++ b/pkg/detectors/nicereply/nicereply_test.go @@ -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 { diff --git a/pkg/detectors/nightfall/nightfall_test.go b/pkg/detectors/nightfall/nightfall_test.go index 03de6e9ff7b1..b009309f6b02 100644 --- a/pkg/detectors/nightfall/nightfall_test.go +++ b/pkg/detectors/nightfall/nightfall_test.go @@ -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 { diff --git a/pkg/detectors/nimble/nimble_test.go b/pkg/detectors/nimble/nimble_test.go index 7b8232c2a0bb..cbdf9fe9579b 100644 --- a/pkg/detectors/nimble/nimble_test.go +++ b/pkg/detectors/nimble/nimble_test.go @@ -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 { diff --git a/pkg/detectors/noticeable/noticeable_test.go b/pkg/detectors/noticeable/noticeable_test.go index 3d3512733b8e..fdb2fe3a9023 100644 --- a/pkg/detectors/noticeable/noticeable_test.go +++ b/pkg/detectors/noticeable/noticeable_test.go @@ -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 { diff --git a/pkg/detectors/notion/notion_test.go b/pkg/detectors/notion/notion_test.go index f1daad5da45b..17ba415f9865 100644 --- a/pkg/detectors/notion/notion_test.go +++ b/pkg/detectors/notion/notion_test.go @@ -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 { diff --git a/pkg/detectors/nozbeteams/nozbeteams_test.go b/pkg/detectors/nozbeteams/nozbeteams_test.go index 8cf126a4fd84..6872abbf3105 100644 --- a/pkg/detectors/nozbeteams/nozbeteams_test.go +++ b/pkg/detectors/nozbeteams/nozbeteams_test.go @@ -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 { diff --git a/pkg/detectors/npmtoken/npmtoken_test.go b/pkg/detectors/npmtoken/npmtoken_test.go index a5ccc676e03b..c85bd3418acc 100644 --- a/pkg/detectors/npmtoken/npmtoken_test.go +++ b/pkg/detectors/npmtoken/npmtoken_test.go @@ -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 { diff --git a/pkg/detectors/npmtokenv2/npmtokenv2_test.go b/pkg/detectors/npmtokenv2/npmtokenv2_test.go index ce6bcaad6fc1..e74b5c15ea16 100644 --- a/pkg/detectors/npmtokenv2/npmtokenv2_test.go +++ b/pkg/detectors/npmtokenv2/npmtokenv2_test.go @@ -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 { diff --git a/pkg/detectors/nugetapikey/nugetapikey_test.go b/pkg/detectors/nugetapikey/nugetapikey_test.go index a0174fd4ef30..2f1661a90021 100644 --- a/pkg/detectors/nugetapikey/nugetapikey_test.go +++ b/pkg/detectors/nugetapikey/nugetapikey_test.go @@ -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 { diff --git a/pkg/detectors/numverify/numverify_test.go b/pkg/detectors/numverify/numverify_test.go index 072a9314feaa..cac67f7a5bdf 100644 --- a/pkg/detectors/numverify/numverify_test.go +++ b/pkg/detectors/numverify/numverify_test.go @@ -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 { diff --git a/pkg/detectors/nutritionix/nutritionix_test.go b/pkg/detectors/nutritionix/nutritionix_test.go index a3662d512cc3..e66e29566c11 100644 --- a/pkg/detectors/nutritionix/nutritionix_test.go +++ b/pkg/detectors/nutritionix/nutritionix_test.go @@ -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 { diff --git a/pkg/detectors/nylas/nylas_test.go b/pkg/detectors/nylas/nylas_test.go index 7921e0dd0f60..00b690b523ad 100644 --- a/pkg/detectors/nylas/nylas_test.go +++ b/pkg/detectors/nylas/nylas_test.go @@ -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 { diff --git a/pkg/detectors/oanda/oanda_test.go b/pkg/detectors/oanda/oanda_test.go index c2762a8fa999..45a9652fd9e6 100644 --- a/pkg/detectors/oanda/oanda_test.go +++ b/pkg/detectors/oanda/oanda_test.go @@ -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 { diff --git a/pkg/detectors/okta/okta_test.go b/pkg/detectors/okta/okta_test.go index d23adf816228..c8fc81a617f7 100644 --- a/pkg/detectors/okta/okta_test.go +++ b/pkg/detectors/okta/okta_test.go @@ -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 { diff --git a/pkg/detectors/omnisend/omnisend_test.go b/pkg/detectors/omnisend/omnisend_test.go index 5e0009497d13..292325bb4ba6 100644 --- a/pkg/detectors/omnisend/omnisend_test.go +++ b/pkg/detectors/omnisend/omnisend_test.go @@ -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 { diff --git a/pkg/detectors/onelogin/onelogin_test.go b/pkg/detectors/onelogin/onelogin_test.go index 50d1e02a192b..a580174fa754 100644 --- a/pkg/detectors/onelogin/onelogin_test.go +++ b/pkg/detectors/onelogin/onelogin_test.go @@ -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 { diff --git a/pkg/detectors/onepagecrm/onepagecrm_test.go b/pkg/detectors/onepagecrm/onepagecrm_test.go index 6f1b6772052c..6a5586c4ba80 100644 --- a/pkg/detectors/onepagecrm/onepagecrm_test.go +++ b/pkg/detectors/onepagecrm/onepagecrm_test.go @@ -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 { diff --git a/pkg/detectors/oopspam/oopspam_test.go b/pkg/detectors/oopspam/oopspam_test.go index 8c9002eeeed9..9cef33fbec67 100644 --- a/pkg/detectors/oopspam/oopspam_test.go +++ b/pkg/detectors/oopspam/oopspam_test.go @@ -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 { diff --git a/pkg/detectors/opencagedata/opencagedata_test.go b/pkg/detectors/opencagedata/opencagedata_test.go index 6f52aae5adc4..379831e0a96b 100644 --- a/pkg/detectors/opencagedata/opencagedata_test.go +++ b/pkg/detectors/opencagedata/opencagedata_test.go @@ -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 { diff --git a/pkg/detectors/openuv/openuv_test.go b/pkg/detectors/openuv/openuv_test.go index 86d48f87b52b..7445358d085d 100644 --- a/pkg/detectors/openuv/openuv_test.go +++ b/pkg/detectors/openuv/openuv_test.go @@ -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 { diff --git a/pkg/detectors/openvpn/openvpn_test.go b/pkg/detectors/openvpn/openvpn_test.go index 2cd49ac0259d..c8678c12a1dd 100644 --- a/pkg/detectors/openvpn/openvpn_test.go +++ b/pkg/detectors/openvpn/openvpn_test.go @@ -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 { diff --git a/pkg/detectors/openweather/openweather_test.go b/pkg/detectors/openweather/openweather_test.go index 3c3cb13e44e2..de18fc216cb6 100644 --- a/pkg/detectors/openweather/openweather_test.go +++ b/pkg/detectors/openweather/openweather_test.go @@ -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 { diff --git a/pkg/detectors/opsgenie/opsgenie_test.go b/pkg/detectors/opsgenie/opsgenie_test.go index ebcd52ea2b58..d39ec36b5b09 100644 --- a/pkg/detectors/opsgenie/opsgenie_test.go +++ b/pkg/detectors/opsgenie/opsgenie_test.go @@ -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 { diff --git a/pkg/detectors/optimizely/optimizely_test.go b/pkg/detectors/optimizely/optimizely_test.go index d5e47a72feca..785c7c2266e3 100644 --- a/pkg/detectors/optimizely/optimizely_test.go +++ b/pkg/detectors/optimizely/optimizely_test.go @@ -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 { diff --git a/pkg/detectors/overloop/overloop_test.go b/pkg/detectors/overloop/overloop_test.go index 3f2673d94f12..affeba8f20e6 100644 --- a/pkg/detectors/overloop/overloop_test.go +++ b/pkg/detectors/overloop/overloop_test.go @@ -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 { diff --git a/pkg/detectors/owlbot/owlbot_test.go b/pkg/detectors/owlbot/owlbot_test.go index 55102e321083..39ce25cddc53 100644 --- a/pkg/detectors/owlbot/owlbot_test.go +++ b/pkg/detectors/owlbot/owlbot_test.go @@ -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 {