MCPcopy Create free account
hub / github.com/celer-pkg/celer / TestCleanCmd_CleanAll_BuildtreesNotExist

Function TestCleanCmd_CleanAll_BuildtreesNotExist

cmds/cmd_clean_test.go:317–325  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

315}
316
317func 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
327func TestCleanCmd_CleanAll_NonDirEntryReturnsError(t *testing.T) {
328 // Cleanup.

Callers

nothing calls this directly

Calls 2

cleanAllMethod · 0.95
RemoveAllForTestFunction · 0.92

Tested by

no test coverage detected