(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestNameValidator_Valid(t *testing.T) { |
| 12 | assert.NoError(t, NameValidator("1")) |
| 13 | assert.NoError(t, NameValidator("ab_cd")) |
| 14 | assert.NoError(t, NameValidator("abcd-a.com")) |
| 15 | } |
| 16 | |
| 17 | func TestNameValidator_Invalid(t *testing.T) { |
| 18 | assert.Error(t, NameValidator("1A")) |
nothing calls this directly
no test coverage detected