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

Function TestAttemptSinkContext

coderd/x/chatd/chatdebug/recorder_internal_test.go:53–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func TestAttemptSinkContext(t *testing.T) {
54 t.Parallel()
55
56 ctx := context.Background()
57 require.Nil(t, attemptSinkFromContext(ctx))
58
59 sink := &attemptSink{}
60 ctx = withAttemptSink(ctx, sink)
61 require.Same(t, sink, attemptSinkFromContext(ctx))
62}
63
64func TestWrapModel_NilModel(t *testing.T) {
65 t.Parallel()

Callers

nothing calls this directly

Calls 2

attemptSinkFromContextFunction · 0.85
withAttemptSinkFunction · 0.85

Tested by

no test coverage detected