(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func 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 | |
| 38 | func TestInvalidPackageNames(t *testing.T) { |
| 39 | for _, name := range invalidPackageNames { |
nothing calls this directly
no test coverage detected