MCPcopy Create free account
hub / github.com/coder/envbuilder / rcvCtx

Function rcvCtx

log/logrus_test.go:102–110  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, ch <-chan T)

Source from the content-addressed store, hash-verified

100}
101
102func rcvCtx[T any](ctx context.Context, t *testing.T, ch <-chan T) (v T) {
103 t.Helper()
104 select {
105 case <-ctx.Done():
106 t.Fatal("timeout")
107 case v = <-ch:
108 }
109 return v
110}

Callers 3

TestHijackLogrus_InfoFunction · 0.85
TestHijackLogrus_DebugFunction · 0.85
TestHijackLogrus_ErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected