MCPcopy Index your code
hub / github.com/coder/coder / containsAnySubstring

Function containsAnySubstring

coderd/database/dbtestutil/postgres.go:499–506  ·  view source on GitHub ↗
(s string, substrings []string)

Source from the content-addressed store, hash-verified

497}
498
499func containsAnySubstring(s string, substrings []string) bool {
500 for _, substr := range substrings {
501 if strings.Contains(s, substr) {
502 return true
503 }
504 }
505 return false
506}

Callers 1

initDefaultConnectionFunction · 0.85

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected