(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func TestSearchRejectsInvalidPackageName(t *testing.T) { |
| 37 | _, err := pkgstats(t, []string{"search", "ö"}) |
| 38 | if err == nil { |
| 39 | t.Fatal("Expected error for invalid package name") |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func TestSearchRejectsInvalidLimit(t *testing.T) { |
| 44 | _, err := pkgstats(t, []string{"search", "--limit", "0", "php"}) |
nothing calls this directly
no test coverage detected