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

Function TestSearchRejectsInvalidPackageName

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

Source from the content-addressed store, hash-verified

34}
35
36func 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
43func TestSearchRejectsInvalidLimit(t *testing.T) {
44 _, err := pkgstats(t, []string{"search", "--limit", "0", "php"})

Callers

nothing calls this directly

Calls 1

pkgstatsFunction · 0.85

Tested by

no test coverage detected