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

Function TestShowVersion

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

Source from the content-addressed store, hash-verified

6)
7
8func TestShowVersion(t *testing.T) {
9 output, err := pkgstats(t, []string{"version"})
10 if err != nil {
11 t.Fatalf("Failed to run command: %v", err)
12 }
13 if !strings.Contains(output, "version") {
14 t.Errorf("Expected version output to contain 'version', got %s", output)
15 }
16}

Callers

nothing calls this directly

Calls 1

pkgstatsFunction · 0.85

Tested by

no test coverage detected