MCPcopy Index your code
hub / github.com/codehamr/codehamr / TestEditFileMissingFile

Function TestEditFileMissingFile

internal/tools/edit_test.go:38–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestEditFileMissingFile(t *testing.T) {
39 s := EditFile(filepath.Join(t.TempDir(), "nope.txt"), "x", "y")
40 if !strings.HasPrefix(s, "(read error:") {
41 t.Fatalf("bad: %q", s)
42 }
43}
44
45func TestEditFileOldNotFound(t *testing.T) {
46 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

EditFileFunction · 0.85

Tested by

no test coverage detected