(t *testing.T, fileName string)
| 99 | } |
| 100 | |
| 101 | func getFileContent(t *testing.T, fileName string) string { |
| 102 | t.Helper() |
| 103 | |
| 104 | content, err := os.ReadFile(fileName) |
| 105 | if err != nil { |
| 106 | t.Errorf("failed to read file contents: %s", err) |
| 107 | |
| 108 | return "" |
| 109 | } |
| 110 | |
| 111 | return string(content) |
| 112 | } |
| 113 | |
| 114 | func clearFile(t *testing.T, file *os.File) { |
| 115 | t.Helper() |
no outgoing calls
searching dependent graphs…