MCPcopy Create free account
hub / github.com/archlinux-de/pkgstats-cli / TestSearchRejectsInvalidLimit

Function TestSearchRejectsInvalidLimit

cmd/search_test.go:43–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func 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
50func TestSearchWithCustomLimit(t *testing.T) {
51 output, err := pkgstats(t, []string{"search", "--limit", "5", "php"})

Callers

nothing calls this directly

Calls 1

pkgstatsFunction · 0.85

Tested by

no test coverage detected