Skip to content

Commit 896bfff

Browse files
committed
add bad test patterns for HTTP(S).
1 parent 08b1b5e commit 896bfff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

patterns_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ var TestVectors = map[string]*testVector{
6868
"HTTP": {
6969
Pattern: HTTP,
7070
Good: []string{"/ip4/1.2.3.4/http", "/dns4/example.io/http", "/dns6/::/tcp/7011/http", "/dnsaddr/example.io/http", "/ip6/fc00::/http"},
71+
Bad: []string{"/ip4/1.2.3.4/https", "/ip4/0.0.0.0/tcp/12345/quic", "/ip6/fc00::/tcp/5523"},
7172
},
7273
"HTTPS": {
7374
Pattern: HTTPS,
7475
Good: []string{"/ip4/1.2.3.4/https", "/dns4/example.io/https", "/dns6/::/tcp/7011/https", "/ip6/fc00::/https"},
76+
Bad: []string{"/ip4/1.2.3.4/http", "/ip4/0.0.0.0/tcp/12345/quic", "/ip6/fc00::/tcp/5523"},
7577
},
7678
}
7779

0 commit comments

Comments
 (0)