MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / searchString

Function searchString

internal/git/push_test.go:150–157  ·  view source on GitHub ↗
(s, substr string)

Source from the content-addressed store, hash-verified

148}
149
150func searchString(s, substr string) bool {
151 for i := 0; i <= len(s)-len(substr); i++ {
152 if s[i:i+len(substr)] == substr {
153 return true
154 }
155 }
156 return false
157}

Callers 1

containsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected