func TestResolveGoogle(t *testing.T) { … } var dialGoogleTests … func TestDialGoogle(t *testing.T) { … } var literalAddrs4 … var literalAddrs6 … func googleLiteralAddrs() (lits4, lits6 []string, err error) { … } func fetchGoogle(dial func(string, string) (Conn, error), network, address string) error { … }