(t *testing.T)
| 495 | } |
| 496 | |
| 497 | func TestRemoveCmd_Purge(t *testing.T) { |
| 498 | installedPort := installForTestRemove(t, "glog@0.6.0", configs.RemoveOptions{ |
| 499 | Purge: true, |
| 500 | }) |
| 501 | |
| 502 | // Check if still installed. |
| 503 | if installed, err := installedPort.Installed(); err != nil { |
| 504 | t.Fatalf("failed to check installation status of glog@0.6.0: %v", err) |
| 505 | } else if installed { |
| 506 | t.Fatal("glog@0.6.0 should have been removed") |
| 507 | } |
| 508 | |
| 509 | // Check if package files are removed. |
| 510 | if fileio.PathExists(installedPort.PackageDir) { |
| 511 | t.Fatalf("package files for glog@0.6.0 should have been purged") |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | func TestRemoveCmd_Recursive(t *testing.T) { |
| 516 | installedPort := installForTestRemove(t, "glog@0.6.0", configs.RemoveOptions{ |
nothing calls this directly
no test coverage detected