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

Function TestShowPackages

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

Source from the content-addressed store, hash-verified

6)
7
8func TestShowPackages(t *testing.T) {
9 output, err := pkgstats(t, []string{"show", "php", "pacman"})
10 if err != nil {
11 t.Fatalf("Failed to run command: %v", err)
12 }
13 linesContainsPackageStatistic(t, strings.Split(output, "\n"), []string{"php", "pacman"})
14}
15
16func TestShowRequiresArguments(t *testing.T) {
17 _, err := pkgstats(t, []string{"show"})

Callers

nothing calls this directly

Calls 2

pkgstatsFunction · 0.85

Tested by

no test coverage detected