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

Function TestRunNewRequiresProvider

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

Source from the content-addressed store, hash-verified

154}
155
156func TestRunNewRequiresProvider(t *testing.T) {
157 opts := NewOptions{
158 Name: "main",
159 BaseDir: t.TempDir(),
160 }
161
162 err := RunNew(opts)
163 if err == nil {
164 t.Fatal("expected provider validation error")
165 }
166 if !strings.Contains(err.Error(), "Provider") {
167 t.Fatalf("expected error to mention Provider, got: %v", err)
168 }
169}

Callers

nothing calls this directly

Calls 1

RunNewFunction · 0.85

Tested by

no test coverage detected