(s, substr string)
| 203 | } |
| 204 | |
| 205 | func containsStr(s, substr string) bool { |
| 206 | if len(s) < len(substr) { |
| 207 | return false |
| 208 | } |
| 209 | for i := 0; i <= len(s)-len(substr); i++ { |
| 210 | if s[i:i+len(substr)] == substr { |
| 211 | return true |
| 212 | } |
| 213 | } |
| 214 | return false |
| 215 | } |
no outgoing calls
no test coverage detected