(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestSearchPackages(t *testing.T) { |
| 22 | output, err := pkgstats(t, []string{"search", "php"}) |
| 23 | if err != nil { |
| 24 | t.Fatalf("Failed to run command: %v", err) |
| 25 | } |
| 26 | linesContainsPackageStatistic(t, strings.Split(output, "\n"), []string{"php", "php-fpm"}) |
| 27 | } |
| 28 | |
| 29 | func TestSearchRequiresArgument(t *testing.T) { |
| 30 | _, err := pkgstats(t, []string{"search"}) |
nothing calls this directly
no test coverage detected