MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestRunEditRejectsInvalidName

Function TestRunEditRejectsInvalidName

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

Source from the content-addressed store, hash-verified

29}
30
31func TestRunEditRejectsInvalidName(t *testing.T) {
32 tmpDir := t.TempDir()
33
34 opts := EditOptions{
35 Name: "invalid name with space",
36 BaseDir: tmpDir,
37 }
38
39 err := RunEdit(opts)
40 if err == nil {
41 t.Error("Expected error for invalid name")
42 }
43}
44
45func TestRunEditDefaultsToMain(t *testing.T) {
46 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

RunEditFunction · 0.85

Tested by

no test coverage detected