소스 검색

Add test for broken uri

tags/v2.0.0-rc1
9seconds 5 년 전
부모
커밋
339840c14a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      config/type_blocklist_uri_test.go

+ 5
- 0
config/type_blocklist_uri_test.go 파일 보기

@@ -38,6 +38,11 @@ func (suite *TypeBlocklistURITestSuite) TestEmptyHost() {
38 38
 	suite.Error(typ.UnmarshalText([]byte("https:///path")))
39 39
 }
40 40
 
41
+func (suite *TypeBlocklistURITestSuite) TestIncorrectURL() {
42
+	typ := &config.TypeBlocklistURI{}
43
+	suite.Error(typ.UnmarshalText([]byte("h:/--")))
44
+}
45
+
41 46
 func (suite *TypeBlocklistURITestSuite) TestUnmarshalFail() {
42 47
 	rnd := make([]byte, 48)
43 48
 

Loading…
취소
저장