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

Function TestUnreadableBody

aibridge/session_test.go:232–240  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

230}
231
232func TestUnreadableBody(t *testing.T) {
233 t.Parallel()
234
235 req, err := http.NewRequestWithContext(t.Context(), http.MethodPost, "http://localhost", &errReader{})
236 require.NoError(t, err)
237
238 got := aibridge.GuessSessionID(aibridge.ClientClaudeCode, req)
239 require.Nil(t, got)
240}
241
242// errReader is an io.Reader that always returns an error.
243type errReader struct{}

Callers

nothing calls this directly

Calls 2

GuessSessionIDFunction · 0.92
ContextMethod · 0.65

Tested by

no test coverage detected