(t *testing.T)
| 480 | } |
| 481 | |
| 482 | func 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 | |
| 497 | func TestRemoveCmd_Purge(t *testing.T) { |
| 498 | installedPort := installForTestRemove(t, "glog@0.6.0", configs.RemoveOptions{ |
nothing calls this directly
no test coverage detected