(t *testing.T, path string)
| 2266 | } |
| 2267 | |
| 2268 | func readFile(t *testing.T, path string) string { |
| 2269 | content, err := os.ReadFile(path) |
| 2270 | if err != nil { |
| 2271 | failWithFailure(t, "no error", fmt.Sprintf("reading file %s failed with %v", path, err)) |
| 2272 | } |
| 2273 | output := string(content) |
| 2274 | return output |
| 2275 | } |
| 2276 | |
| 2277 | func assertOnBranch(t *testing.T, branch string) { |
| 2278 | currentBranch := gitCurrentBranch() |
no test coverage detected