Skip to content

Commit 00b8071

Browse files
tklausergopherbot
authored andcommitted
net/netip: cover IPv4Unspecified in TestAddrWellKnown
Like IPv6Unspecified which is already covered in that test. Change-Id: I2bac4c50577c4c2c91cea26b9fbed88327cef516 Reviewed-on: https://go-review.googlesource.com/c/go/+/589595 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Auto-Submit: Tobias Klauser <[email protected]>
1 parent 639cc0d commit 00b8071

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/net/netip/netip_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,11 @@ func TestAddrWellKnown(t *testing.T) {
788788
ip Addr
789789
std net.IP
790790
}{
791+
{
792+
name: "IPv4 unspecified",
793+
ip: IPv4Unspecified(),
794+
std: net.IPv4zero,
795+
},
791796
{
792797
name: "IPv6 link-local all nodes",
793798
ip: IPv6LinkLocalAllNodes(),

0 commit comments

Comments
 (0)