Codebase list golang-github-go-playground-validator-v10 / bf5ac69
Add a couple more test cases joeybloggs 8 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
19921992 param string
19931993 expected bool
19941994 }{
1995 {"", false},
19951996 {":80", false},
19961997 {"127.0.0.1:80", true},
19971998 {"[::1]:80", true},
20232024 param string
20242025 expected bool
20252026 }{
2027 {"", false},
20262028 {":80", false},
20272029 {"127.0.0.1:80", false},
20282030 {"[::1]:80", true},
20542056 param string
20552057 expected bool
20562058 }{
2059 {"", false},
20572060 {":80", false},
20582061 {"127.0.0.1:80", true},
20592062 {"[::1]:80", false}, // https://github.com/golang/go/issues/14037
20862089 param string
20872090 expected bool
20882091 }{
2092 {"", false},
20892093 {":80", false},
20902094 {"127.0.0.1:80", true},
20912095 {"[::1]:80", true},
21172121 param string
21182122 expected bool
21192123 }{
2124 {"", false},
21202125 {":80", false},
21212126 {"127.0.0.1:80", false},
21222127 {"[::1]:80", true},
21482153 param string
21492154 expected bool
21502155 }{
2156 {"", false},
21512157 {":80", false},
21522158 {"127.0.0.1:80", true},
21532159 {"[::1]:80", false}, // https://github.com/golang/go/issues/14037