MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / contains

Function contains

utils_test.go:237–239  ·  view source on GitHub ↗

Helper function

(s, substr string)

Source from the content-addressed store, hash-verified

235
236// Helper function
237func contains(s, substr string) bool {
238 return len(s) > 0 && len(substr) > 0 && findSubstring(s, substr)
239}
240
241func findSubstring(s, substr string) bool {
242 for i := 0; i <= len(s)-len(substr); i++ {

Callers 1

Calls 1

findSubstringFunction · 0.85

Tested by

no test coverage detected