indexOf returns the index of substr in s, or -1 if not found
(s, substr string)
| 196 | |
| 197 | // indexOf returns the index of substr in s, or -1 if not found |
| 198 | func indexOf(s, substr string) int { |
| 199 | for i := 0; i <= len(s)-len(substr); i++ { |
| 200 | if s[i:i+len(substr)] == substr { |
| 201 | return i |
| 202 | } |
| 203 | } |
| 204 | return -1 |
| 205 | } |
| 206 | |
| 207 | func TestActionCacheEmptySaveDoesNotCreateFile(t *testing.T) { |
| 208 | // Create temporary directory for testing |
no outgoing calls
no test coverage detected