mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:34:02 +03:00
Add test for broken uri
This commit is contained in:
@@ -38,6 +38,11 @@ func (suite *TypeBlocklistURITestSuite) TestEmptyHost() {
|
|||||||
suite.Error(typ.UnmarshalText([]byte("https:///path")))
|
suite.Error(typ.UnmarshalText([]byte("https:///path")))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (suite *TypeBlocklistURITestSuite) TestIncorrectURL() {
|
||||||
|
typ := &config.TypeBlocklistURI{}
|
||||||
|
suite.Error(typ.UnmarshalText([]byte("h:/--")))
|
||||||
|
}
|
||||||
|
|
||||||
func (suite *TypeBlocklistURITestSuite) TestUnmarshalFail() {
|
func (suite *TypeBlocklistURITestSuite) TestUnmarshalFail() {
|
||||||
rnd := make([]byte, 48)
|
rnd := make([]byte, 48)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user