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

Function TestInvalidPackageName

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

Source from the content-addressed store, hash-verified

20}
21
22func TestInvalidPackageName(t *testing.T) {
23 for _, name := range invalidPackageNames {
24 if err := request.ValidatePackageName(name); err == nil {
25 t.Error("name should be invalid")
26 }
27 }
28}
29
30func TestValidPackageNames(t *testing.T) {
31 for _, name := range validPackageNames {

Callers

nothing calls this directly

Calls 1

ValidatePackageNameFunction · 0.92

Tested by

no test coverage detected