(t *testing.T)
| 315 | } |
| 316 | |
| 317 | func TestCleanCmd_CleanAll_BuildtreesNotExist(t *testing.T) { |
| 318 | // Cleanup. |
| 319 | dirs.RemoveAllForTest() |
| 320 | |
| 321 | clean := cleanCmd{celer: &configs.Celer{}} |
| 322 | if err := clean.cleanAll(); err != nil { |
| 323 | t.Fatalf("cleanAll should return nil when buildtrees does not exist: %v", err) |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | func TestCleanCmd_CleanAll_NonDirEntryReturnsError(t *testing.T) { |
| 328 | // Cleanup. |
nothing calls this directly
no test coverage detected