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

Function TestShowSinglePackage

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

Source from the content-addressed store, hash-verified

28}
29
30func TestShowSinglePackage(t *testing.T) {
31 output, err := pkgstats(t, []string{"show", "php"})
32 if err != nil {
33 t.Fatalf("Failed to run command: %v", err)
34 }
35 linesContainsPackageStatistic(t, strings.Split(output, "\n"), []string{"php"})
36}

Callers

nothing calls this directly

Calls 2

pkgstatsFunction · 0.85

Tested by

no test coverage detected