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

Function newTestSinkContext

coderd/x/chatd/chatdebug/transport_internal_test.go:22–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20)
21
22func newTestSinkContext(t *testing.T) (context.Context, *attemptSink) {
23 t.Helper()
24
25 sink := &attemptSink{}
26 return withAttemptSink(context.Background(), sink), sink
27}
28
29type roundTripFunc func(*http.Request) (*http.Response, error)
30

Calls 2

withAttemptSinkFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected