(t *testing.T)
| 131 | } |
| 132 | |
| 133 | func TestIsUrl(t *testing.T) { |
| 134 | testCases := []validationTestCase{ |
| 135 | {"https://www.com", true, "https://www.com", ""}, |
| 136 | {"ftp://www.com", false, "ftp://www.com", ""}, |
| 137 | {"example.com", false, "example.com", ""}, |
| 138 | {"foo", false, "foo", ""}, |
| 139 | {"", false, "", ""}, |
| 140 | } |
| 141 | runValidationTests(t, testCases, IsURL, "IsUrl") |
| 142 | } |
| 143 | |
| 144 | func TestIsChecked(t *testing.T) { |
| 145 | testCases := []validationTestCase{ |
nothing calls this directly
no test coverage detected