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

Function TestManagerPauseNonRunning

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

Source from the content-addressed store, hash-verified

186}
187
188func TestManagerPauseNonRunning(t *testing.T) {
189 tmpDir := t.TempDir()
190 prdPath := createTestPRDWithName(t, tmpDir, "test-prd")
191
192 m := NewManager(10, testProvider)
193 m.Register("test-prd", prdPath)
194
195 // Pause a non-running PRD should error
196 err := m.Pause("test-prd")
197 if err == nil {
198 t.Error("expected error when pausing non-running PRD")
199 }
200}
201
202func TestManagerStopNonRunning(t *testing.T) {
203 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 4

RegisterMethod · 0.95
PauseMethod · 0.95
createTestPRDWithNameFunction · 0.85
NewManagerFunction · 0.85

Tested by

no test coverage detected