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

Function TestShowRejectsInvalidPackageName

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

Source from the content-addressed store, hash-verified

21}
22
23func TestShowRejectsInvalidPackageName(t *testing.T) {
24 _, err := pkgstats(t, []string{"show", "ö"})
25 if err == nil {
26 t.Fatal("Expected error for invalid package name")
27 }
28}
29
30func TestShowSinglePackage(t *testing.T) {
31 output, err := pkgstats(t, []string{"show", "php"})

Callers

nothing calls this directly

Calls 1

pkgstatsFunction · 0.85

Tested by

no test coverage detected