]> Cypherpunks repositories - gostls13.git/commitdiff
net/netip: cover IPv4Unspecified in TestAddrWellKnown
authorTobias Klauser <tklauser@distanz.ch>
Fri, 31 May 2024 12:16:38 +0000 (14:16 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 31 May 2024 19:15:10 +0000 (19:15 +0000)
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>

src/net/netip/netip_test.go

index 79e1a446d87110d1423e01e67e0ed3e859ff864d..4307df38bf424ec2f685ab33294a058ec7a933e9 100644 (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(),