MCPcopy Index your code
hub / github.com/celer-pkg/celer / TestRemoveCmd_BuildCache

Function TestRemoveCmd_BuildCache

cmds/cmd_remove_test.go:482–495  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

480}
481
482func TestRemoveCmd_BuildCache(t *testing.T) {
483 installedPort := installForTestRemove(t, "glog@0.6.0", configs.RemoveOptions{
484 BuildCache: true,
485 })
486 if installed, err := installedPort.Installed(); err != nil {
487 t.Fatalf("failed to check installation status of glog@0.6.0: %v", err)
488 } else if installed {
489 t.Fatal("glog@0.6.0 should have been removed")
490 }
491
492 if fileio.PathExists(installedPort.MatchedConfig.PortConfig.BuildDir) {
493 t.Fatalf("build cache for glog@0.6.0 should have been removed")
494 }
495}
496
497func TestRemoveCmd_Purge(t *testing.T) {
498 installedPort := installForTestRemove(t, "glog@0.6.0", configs.RemoveOptions{

Callers

nothing calls this directly

Calls 3

PathExistsFunction · 0.92
installForTestRemoveFunction · 0.85
InstalledMethod · 0.80

Tested by

no test coverage detected