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

Function TestSearchWithCustomLimit

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

Source from the content-addressed store, hash-verified

48}
49
50func TestSearchWithCustomLimit(t *testing.T) {
51 output, err := pkgstats(t, []string{"search", "--limit", "5", "php"})
52 if err != nil {
53 t.Fatalf("Failed to run command: %v", err)
54 }
55 linesContainsPackageStatistic(t, strings.Split(output, "\n"), []string{"php"})
56}

Callers

nothing calls this directly

Calls 2

pkgstatsFunction · 0.85

Tested by

no test coverage detected