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

Function TestManagerStopNonRunning

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

Source from the content-addressed store, hash-verified

200}
201
202func TestManagerStopNonRunning(t *testing.T) {
203 tmpDir := t.TempDir()
204 prdPath := createTestPRDWithName(t, tmpDir, "test-prd")
205
206 m := NewManager(10, testProvider)
207 m.Register("test-prd", prdPath)
208
209 // Stop a non-running PRD should not error (idempotent)
210 err := m.Stop("test-prd")
211 if err != nil {
212 t.Errorf("unexpected error: %v", err)
213 }
214}
215
216func TestManagerStartNonExistent(t *testing.T) {
217 m := NewManager(10, testProvider)

Callers

nothing calls this directly

Calls 4

RegisterMethod · 0.95
StopMethod · 0.95
createTestPRDWithNameFunction · 0.85
NewManagerFunction · 0.85

Tested by

no test coverage detected