diff --git a/config/type_blocklist_uri_test.go b/config/type_blocklist_uri_test.go index 6e0b260..3d53135 100644 --- a/config/type_blocklist_uri_test.go +++ b/config/type_blocklist_uri_test.go @@ -38,6 +38,11 @@ func (suite *TypeBlocklistURITestSuite) TestEmptyHost() { suite.Error(typ.UnmarshalText([]byte("https:///path"))) } +func (suite *TypeBlocklistURITestSuite) TestIncorrectURL() { + typ := &config.TypeBlocklistURI{} + suite.Error(typ.UnmarshalText([]byte("h:/--"))) +} + func (suite *TypeBlocklistURITestSuite) TestUnmarshalFail() { rnd := make([]byte, 48)