MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / readFileStr

Function readFileStr

e2e_test.go:480–487  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

478 }
479
480 // Log should contain our commit message.
481 logOut := gitCmd(t, mountPath, "log", "--oneline", "-1")
482 if !strings.Contains(logOut, "e2e commit test") {
483 t.Fatalf("expected commit message in log, got %q", logOut)
484 }
485
486 // File content should still be readable (now served from the base
487 // snapshot after overlay reconciliation removed the entry).
488 got := readFileStr(t, commitFile)
489 if got != "committed content\n" {
490 t.Fatalf("expected 'committed content\\n', got %q", got)

Calls 1

ReadFileMethod · 0.45

Tested by

no test coverage detected