go/src/net/interface_test.go

// loopbackInterface returns an available logical network interface
// for loopback tests. It returns nil if no suitable interface is
// found.
func loopbackInterface() *Interface {}

// ipv6LinkLocalUnicastAddr returns an IPv6 link-local unicast address
// on the given network interface for tests. It returns "" if no
// suitable address is found.
func ipv6LinkLocalUnicastAddr(ifi *Interface) string {}

func TestInterfaces(t *testing.T) {}

func TestInterfaceAddrs(t *testing.T) {}

func TestInterfaceUnicastAddrs(t *testing.T) {}

func TestInterfaceMulticastAddrs(t *testing.T) {}

type ifStats

func interfaceStats(ift []Interface) *ifStats {}

type routeStats

func validateInterfaceUnicastAddrs(ifat []Addr) (*routeStats, error) {}

func validateInterfaceMulticastAddrs(ifat []Addr) (*routeStats, error) {}

func checkUnicastStats(ifStats *ifStats, uniStats *routeStats) error {}

func checkMulticastStats(ifStats *ifStats, uniStats, multiStats *routeStats) error {}

func BenchmarkInterfaces(b *testing.B) {}

func BenchmarkInterfaceByIndex(b *testing.B) {}

func BenchmarkInterfaceByName(b *testing.B) {}

func BenchmarkInterfaceAddrs(b *testing.B) {}

func BenchmarkInterfacesAndAddrs(b *testing.B) {}

func BenchmarkInterfacesAndMulticastAddrs(b *testing.B) {}