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

Function TestBeginStep_NilService

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

Source from the content-addressed store, hash-verified

135}
136
137func TestBeginStep_NilService(t *testing.T) {
138 t.Parallel()
139
140 ctx := context.Background()
141 handle, enriched := beginStep(ctx, nil, RecorderOptions{}, OperationGenerate, nil)
142 require.Nil(t, handle)
143 require.Nil(t, attemptSinkFromContext(enriched))
144 _, ok := StepFromContext(enriched)
145 require.False(t, ok)
146}
147
148func TestBeginStep_FallsBackToRunChatID(t *testing.T) {
149 t.Parallel()

Callers

nothing calls this directly

Calls 3

beginStepFunction · 0.85
attemptSinkFromContextFunction · 0.85
StepFromContextFunction · 0.85

Tested by

no test coverage detected