1
// Copyright 2012 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
8
addTestCases(netipv6zoneTests, netipv6zone)
11
var netipv6zoneTests = []testCase{
13
Name: "netipv6zone.0",
20
sub(&net.UDPAddr{ip2, 12345})
21
c := &net.TCPAddr{IP: ip3, Port: 54321}
22
d := &net.TCPAddr{ip4, 0}
23
return &net.TCPAddr{ip5}, nil
31
a := &net.IPAddr{IP: ip1}
32
sub(&net.UDPAddr{IP: ip2, Port: 12345})
33
c := &net.TCPAddr{IP: ip3, Port: 54321}
34
d := &net.TCPAddr{IP: ip4}
35
return &net.TCPAddr{IP: ip5}, nil