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

Function TestRunNewRejectsInvalidName

internal/cmd/new_test.go:70–82  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

68}
69
70func TestRunNewRejectsInvalidName(t *testing.T) {
71 tmpDir := t.TempDir()
72
73 opts := NewOptions{
74 Name: "invalid name with space",
75 BaseDir: tmpDir,
76 }
77
78 err := RunNew(opts)
79 if err == nil {
80 t.Error("Expected error for invalid name")
81 }
82}
83
84func TestRunNewCleansUpEmptyDirOnCancel(t *testing.T) {
85 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

RunNewFunction · 0.85

Tested by

no test coverage detected