From: Tobias Klauser Date: Fri, 31 May 2024 12:16:38 +0000 (+0200) Subject: net/netip: cover IPv4Unspecified in TestAddrWellKnown X-Git-Tag: go1.23rc1~97 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=00b8071a12e298303b2f4bd0e9f641ef3e54772a;p=gostls13.git 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 Reviewed-by: Ian Lance Taylor Reviewed-by: Carlos Amedee Auto-Submit: Tobias Klauser --- diff --git a/src/net/netip/netip_test.go b/src/net/netip/netip_test.go index 79e1a446d8..4307df38bf 100644 --- a/src/net/netip/netip_test.go +++ b/src/net/netip/netip_test.go @@ -788,6 +788,11 @@ func TestAddrWellKnown(t *testing.T) { ip Addr std net.IP }{ + { + name: "IPv4 unspecified", + ip: IPv4Unspecified(), + std: net.IPv4zero, + }, { name: "IPv6 link-local all nodes", ip: IPv6LinkLocalAllNodes(),