MCPcopy Create free account
hub / github.com/1Password/for-open-source / TestIsEmail

Function TestIsEmail

script/validator_test.go:124–131  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

122}
123
124func TestIsEmail(t *testing.T) {
125 testCases := []validationTestCase{
126 {"test@example.com", true, "test@example.com", ""},
127 {"@example.com", false, "@example.com", ""},
128 {"", false, "", ""},
129 }
130 runValidationTests(t, testCases, IsEmail, "IsEmail")
131}
132
133func TestIsUrl(t *testing.T) {
134 testCases := []validationTestCase{

Callers

nothing calls this directly

Calls 1

runValidationTestsFunction · 0.85

Tested by

no test coverage detected