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

Function TestValidPackageName

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

Source from the content-addressed store, hash-verified

12)
13
14func TestValidPackageName(t *testing.T) {
15 for _, name := range validPackageNames {
16 if err := request.ValidatePackageName(name); err != nil {
17 t.Error("name should be valid:", name, err)
18 }
19 }
20}
21
22func TestInvalidPackageName(t *testing.T) {
23 for _, name := range invalidPackageNames {

Callers

nothing calls this directly

Calls 1

ValidatePackageNameFunction · 0.92

Tested by

no test coverage detected