(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func 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 | |
| 216 | func TestManagerStartNonExistent(t *testing.T) { |
| 217 | m := NewManager(10, testProvider) |
nothing calls this directly
no test coverage detected