(t *testing.T, found, expected string)
| 31 | } |
| 32 | |
| 33 | func check(t *testing.T, found, expected string) { |
| 34 | if !strings.Contains(found, expected) { |
| 35 | t.Errorf("Expecting to contain: \n %q\nGot:\n %q\n", expected, found) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func checkNumOccurrences(t *testing.T, found, expected string, expectedOccurrences int) { |
| 40 | numOccurrences := strings.Count(found, expected) |
no outgoing calls
no test coverage detected