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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
Tobias Klauser 2024-05-31 14:16:38 +02:00 committed by Gopher Robot
parent 639cc0dcc0
commit 00b8071a12

View file

@ -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(),