(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestSearchRequiresArgument(t *testing.T) { |
| 30 | _, err := pkgstats(t, []string{"search"}) |
| 31 | if err == nil { |
| 32 | t.Fatal("Expected error when no argument provided") |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func TestSearchRejectsInvalidPackageName(t *testing.T) { |
| 37 | _, err := pkgstats(t, []string{"search", "ö"}) |
nothing calls this directly
no test coverage detected