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

Function TestInvalidPackageNames

internal/api/request/validator_test.go:38–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestInvalidPackageNames(t *testing.T) {
39 for _, name := range invalidPackageNames {
40 if err := request.ValidatePackageNames(append([]string{"foo"}, name)); err == nil {
41 t.Error("names should be invalid")
42 }
43 }
44}

Callers

nothing calls this directly

Calls 1

ValidatePackageNamesFunction · 0.92

Tested by

no test coverage detected