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

Function TestSearchPackages

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

Source from the content-addressed store, hash-verified

19}
20
21func TestSearchPackages(t *testing.T) {
22 output, err := pkgstats(t, []string{"search", "php"})
23 if err != nil {
24 t.Fatalf("Failed to run command: %v", err)
25 }
26 linesContainsPackageStatistic(t, strings.Split(output, "\n"), []string{"php", "php-fpm"})
27}
28
29func TestSearchRequiresArgument(t *testing.T) {
30 _, err := pkgstats(t, []string{"search"})

Callers

nothing calls this directly

Calls 2

pkgstatsFunction · 0.85

Tested by

no test coverage detected