var sw … var testHookUninstaller … var testTCPBig … var testDNSFlood … var testIPv4 … var testIPv6 … func TestMain(m *testing.M) { … } // mustSetDeadline calls the bound method m to set a deadline on a Conn. // If the call fails, mustSetDeadline skips t if the current GOOS is believed // not to support deadlines, or fails the test otherwise. func mustSetDeadline(t testing.TB, m func(time.Time) error, d time.Duration) { … } type ipv6LinkLocalUnicastTest … var ipv6LinkLocalUnicastTCPTests … var ipv6LinkLocalUnicastUDPTests … func setupTestData() { … } func printRunningGoroutines() { … } // runningGoroutines returns a list of remaining goroutines. func runningGoroutines() []string { … } func printInflightSockets() { … } func printSocketStats() { … }