Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
updated the function names of new pattern tests for detetors n through o (#3691)
Nabeel Alamfe6773ea43e6
diff --git a/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.goindex 3d88732c2..13bd7b235 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.goindex 9511af44f..4a75b4e3e 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.goindex 215cd40b8..5b95edde3 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.goindex e6370da78..62e44d4f0 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.goindex 0e9c09506..0e7e8704f 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.goindex 3605a3b16..d369fdd86 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.goindex 06f273963..4a814875a 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.goindex bf3155d64..fadb05f00 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.goindex e235bdc5e..5fdcaf49b 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.goindex 2e632e5b6..e0aff573d 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.goindex 47db2a3ca..ed9c78f1d 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.goindex 8fab43a11..85f819900 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.goindex 466cd9a17..5990ccda0 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.goindex 03de6e9ff..b009309f6 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.goindex 7b8232c2a..cbdf9fe95 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.goindex 3d3512733..fdb2fe3a9 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.goindex f1daad5da..17ba415f9 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.goindex 8cf126a4f..6872abbf3 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.goindex a5ccc676e..c85bd3418 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.goindex ce6bcaad6..e74b5c15e 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.goindex a0174fd4e..2f1661a90 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.goindex 072a9314f..cac67f7a5 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.goindex a3662d512..e66e29566 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.goindex 7921e0dd0..00b690b52 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.goindex c2762a8fa..45a9652fd 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.goindex d23adf816..c8fc81a61 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.goindex 5e0009497..292325bb4 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.goindex 50d1e02a1..a580174fa 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.goindex 6f1b67720..6a5586c4b 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.goindex 8c9002eee..9cef33fbe 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.goindex 6f52aae5a..379831e0a 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.goindex 86d48f87b..7445358d0 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.goindex 2cd49ac02..c8678c12a 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.goindex 3c3cb13e4..de18fc216 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.goindex ebcd52ea2..d39ec36b5 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.goindex d5e47a72f..785c7c226 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.goindex 3f2673d94..affeba8f2 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.goindex 55102e321..39ce25cdd 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 {