Also inline the single-use unspecified{4,6} variables.
Change-Id: I5992273031e0b8db1bc6f5de8fce669310226ee9
Reviewed-on: https://go-review.googlesource.com/c/go/+/435915
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
private4b = mustIP("172.16.0.1")
private4c = mustIP("192.168.1.1")
private6 = mustIP("fd00::1")
-
- unspecified4 = AddrFrom4([4]byte{})
- unspecified6 = IPv6Unspecified()
)
tests := []struct {
},
{
name: "unspecified v4Addr",
- ip: unspecified4,
+ ip: IPv4Unspecified(),
unspecified: true,
},
{
name: "unspecified v6Addr",
- ip: unspecified6,
+ ip: IPv6Unspecified(),
unspecified: true,
},
}