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

Function TestIsUrl

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

Source from the content-addressed store, hash-verified

131}
132
133func 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
144func TestIsChecked(t *testing.T) {
145 testCases := []validationTestCase{

Callers

nothing calls this directly

Calls 1

runValidationTestsFunction · 0.85

Tested by

no test coverage detected