(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func 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 | |
| 133 | func TestIsUrl(t *testing.T) { |
| 134 | testCases := []validationTestCase{ |
nothing calls this directly
no test coverage detected