MCPcopy Index your code
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / tryDialUnix

Function tryDialUnix

internal/proxy/fuse_test.go:127–143  ·  view source on GitHub ↗
(t *testing.T, addr string)

Source from the content-addressed store, hash-verified

125}
126
127func tryDialUnix(t *testing.T, addr string) net.Conn {
128 var (
129 conn net.Conn
130 dialErr error
131 )
132 for i := 0; i < 10; i++ {
133 conn, dialErr = net.Dial("unix", addr)
134 if conn != nil {
135 break
136 }
137 time.Sleep(100 * time.Millisecond)
138 }
139 if dialErr != nil {
140 t.Fatalf("net.Dial(): %v", dialErr)
141 }
142 return conn
143}
144
145func TestFUSEDialInstance(t *testing.T) {
146 if testing.Short() {

Callers 5

TestFUSEDialInstanceFunction · 0.85
TestFUSEReadDirFunction · 0.85
TestFUSECheckConnectionsFunction · 0.85
TestFUSECloseFunction · 0.85

Calls 1

DialMethod · 0.65

Tested by

no test coverage detected