mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 14:34:01 +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")))
|
||||
}
|
||||
|
||||
func (suite *TypeBlocklistURITestSuite) TestIncorrectURL() {
|
||||
typ := &config.TypeBlocklistURI{}
|
||||
suite.Error(typ.UnmarshalText([]byte("h:/--")))
|
||||
}
|
||||
|
||||
func (suite *TypeBlocklistURITestSuite) TestUnmarshalFail() {
|
||||
rnd := make([]byte, 48)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user