mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
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:
parent
639cc0dcc0
commit
00b8071a12
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue