MCPcopy Index your code
hub / github.com/MiniCodeMonkey/chief / TestManagerStartRequiresProvider

Function TestManagerStartRequiresProvider

internal/loop/manager_test.go:225–241  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

223}
224
225func TestManagerStartRequiresProvider(t *testing.T) {
226 tmpDir := t.TempDir()
227 prdPath := createTestPRDWithName(t, tmpDir, "test-prd")
228
229 m := NewManager(10, nil)
230 if err := m.Register("test-prd", prdPath); err != nil {
231 t.Fatalf("register failed: %v", err)
232 }
233
234 err := m.Start("test-prd")
235 if err == nil {
236 t.Fatal("expected provider validation error")
237 }
238 if err.Error() != "manager provider is not configured" {
239 t.Fatalf("unexpected error: %v", err)
240 }
241}
242
243func TestManagerConcurrentAccess(t *testing.T) {
244 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 4

RegisterMethod · 0.95
StartMethod · 0.95
createTestPRDWithNameFunction · 0.85
NewManagerFunction · 0.85

Tested by

no test coverage detected