readFile reads the content of a file as a string.
(t *testing.T, path string)
| 45 | |
| 46 | // readFile reads the content of a file as a string. |
| 47 | func readFile(t *testing.T, path string) string { |
| 48 | t.Helper() |
| 49 | b, err := os.ReadFile(path) |
| 50 | if err != nil { |
| 51 | t.Fatal(err) |
| 52 | } |
| 53 | return string(b) |
| 54 | } |
| 55 | |
| 56 | func Test_splitInlineComment(t *testing.T) { |
| 57 | tests := []struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…