(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestShowPackages(t *testing.T) { |
| 9 | output, err := pkgstats(t, []string{"show", "php", "pacman"}) |
| 10 | if err != nil { |
| 11 | t.Fatalf("Failed to run command: %v", err) |
| 12 | } |
| 13 | linesContainsPackageStatistic(t, strings.Split(output, "\n"), []string{"php", "pacman"}) |
| 14 | } |
| 15 | |
| 16 | func TestShowRequiresArguments(t *testing.T) { |
| 17 | _, err := pkgstats(t, []string{"show"}) |
nothing calls this directly
no test coverage detected