(t *testing.T)
| 186 | } |
| 187 | |
| 188 | func 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 | |
| 202 | func TestManagerStopNonRunning(t *testing.T) { |
| 203 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected