MCPcopy Create free account
hub / github.com/docker/secrets-engine / TestIsDialError

Function TestIsDialError

client/client_test.go:254–262  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

252}
253
254func TestIsDialError(t *testing.T) {
255 require.True(t, isDialError(&net.OpError{
256 Op: "dial",
257 }))
258 require.True(t, isDialError(&net.OpError{
259 Op: "connect",
260 }))
261 require.False(t, isDialError(nil))
262}

Callers

nothing calls this directly

Calls 1

isDialErrorFunction · 0.85

Tested by

no test coverage detected