MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestEditFileEmptyPath

Function TestEditFileEmptyPath

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

Source from the content-addressed store, hash-verified

30}
31
32func TestEditFileEmptyPath(t *testing.T) {
33 if got := EditFile("", "x", "y"); got != "(empty path)" {
34 t.Fatalf("bad: %q", got)
35 }
36}
37
38func TestEditFileMissingFile(t *testing.T) {
39 s := EditFile(filepath.Join(t.TempDir(), "nope.txt"), "x", "y")

Callers

nothing calls this directly

Calls 1

EditFileFunction · 0.85

Tested by

no test coverage detected