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

Function TestValidPackageNames

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

Source from the content-addressed store, hash-verified

28}
29
30func TestValidPackageNames(t *testing.T) {
31 for _, name := range validPackageNames {
32 if err := request.ValidatePackageNames(append([]string{"foo"}, name)); err != nil {
33 t.Error("names should be valid", name, err)
34 }
35 }
36}
37
38func TestInvalidPackageNames(t *testing.T) {
39 for _, name := range invalidPackageNames {

Callers

nothing calls this directly

Calls 1

ValidatePackageNamesFunction · 0.92

Tested by

no test coverage detected