MCPcopy Index your code
hub / github.com/celer-pkg/celer / assertFileContent

Function assertFileContent

pkgcache/cache_setup_test.go:233–242  ·  view source on GitHub ↗
(t *testing.T, path, want string)

Source from the content-addressed store, hash-verified

231}
232
233func assertFileContent(t *testing.T, path, want string) {
234 t.Helper()
235 got, err := os.ReadFile(path)
236 if err != nil {
237 t.Fatal(err)
238 }
239 if string(got) != want {
240 t.Fatalf("file content = %q, want %q", string(got), want)
241 }
242}

Calls

no outgoing calls

Tested by

no test coverage detected