MCPcopy Index your code
hub / github.com/coder/coder / TestCoderConnectDialer_Overridden

Function TestCoderConnectDialer_Overridden

cli/ssh_internal_test.go:257–264  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

255}
256
257func TestCoderConnectDialer_Overridden(t *testing.T) {
258 t.Parallel()
259 custom := &net.Dialer{Timeout: 99 * time.Second}
260 ctx := WithTestOnlyCoderConnectDialer(context.Background(), custom)
261
262 dialer := testOrDefaultDialer(ctx)
263 assert.Equal(t, custom, dialer)
264}
265
266func TestCoderConnectStdio(t *testing.T) {
267 t.Parallel()

Callers

nothing calls this directly

Calls 3

testOrDefaultDialerFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected