MCPcopy Create free account
hub / github.com/coder/aibridge / TestUnreadableBody

Function TestUnreadableBody

session_test.go:227–235  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

GuessSessionIDFunction · 0.92

Tested by

no test coverage detected