MCPcopy Create free account
hub / github.com/Pallinder/go-randomdata / findInSlice

Function findInSlice

random_data_test.go:510–517  ·  view source on GitHub ↗
(source []string, toFind string)

Source from the content-addressed store, hash-verified

508}
509
510func findInSlice(source []string, toFind string) bool {
511 for _, text := range source {
512 if text == toFind {
513 return true
514 }
515 }
516 return false
517}
518
519func TestPhoneNumbers(t *testing.T) {
520 CheckPhoneNumber(PhoneNumber(), t)

Callers 15

TestTitleFunction · 0.85
TestFirstNameFunction · 0.85
TestLastNameFunction · 0.85
TestFullNameFunction · 0.85
TestCountryFunction · 0.85
TestCurrencyFunction · 0.85
TestCityFunction · 0.85
TestParagraphFunction · 0.85
TestStateFunction · 0.85
TestNounFunction · 0.85
TestAdjectiveFunction · 0.85
TestDayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…