(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestSearchRejectsInvalidLimit(t *testing.T) { |
| 44 | _, err := pkgstats(t, []string{"search", "--limit", "0", "php"}) |
| 45 | if err == nil { |
| 46 | t.Fatal("Expected error for limit below minimum") |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func TestSearchWithCustomLimit(t *testing.T) { |
| 51 | output, err := pkgstats(t, []string{"search", "--limit", "5", "php"}) |
nothing calls this directly
no test coverage detected