(t *testing.T)
| 452 | } |
| 453 | |
| 454 | func TestRemoveCmd_Execute_ValidationError(t *testing.T) { |
| 455 | // Cleanup. |
| 456 | dirs.RemoveAllForTest() |
| 457 | |
| 458 | remove := &removeCmd{ |
| 459 | celer: &configs.Celer{}, |
| 460 | } |
| 461 | |
| 462 | // Test with invalid package name. |
| 463 | err := remove.execute([]string{"invalid-package"}) |
| 464 | if err == nil { |
| 465 | t.Error("Expected error for invalid package name, got nil") |
| 466 | } |
| 467 | |
| 468 | if !strings.Contains(err.Error(), "invalid package names") { |
| 469 | t.Errorf("Expected validation error, got: %v", err) |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | func TestRemoveCmd_Default(t *testing.T) { |
| 474 | installedPort := installForTestRemove(t, "glog@0.6.0", configs.RemoveOptions{}) |
nothing calls this directly
no test coverage detected