MCPcopy Create free account
hub / github.com/encodeous/nylon / TestNameValidator_Valid

Function TestNameValidator_Valid

state/validation_test.go:11–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func 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
17func TestNameValidator_Invalid(t *testing.T) {
18 assert.Error(t, NameValidator("1A"))

Callers

nothing calls this directly

Calls 1

NameValidatorFunction · 0.85

Tested by

no test coverage detected