MCPcopy Index your code
hub / github.com/coder/coder / assertFileContent

Function assertFileContent

scripts/gotestsummary/main_test.go:224–229  ·  view source on GitHub ↗
(t *testing.T, path string, expected string)

Source from the content-addressed store, hash-verified

222}
223
224func assertFileContent(t *testing.T, path string, expected string) {
225 t.Helper()
226 content, err := os.ReadFile(path)
227 require.NoError(t, err)
228 require.Equal(t, expected, string(content))
229}
230
231func emptyEnv(string) string { return "" }
232

Calls 3

HelperMethod · 0.65
ReadFileMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected