MCPcopy Create free account
hub / github.com/cortexproject/cortex / BytesBuffer

Method BytesBuffer

pkg/util/http_test.go:216–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214}
215
216func (b bytesBuffered) BytesBuffer() *bytes.Buffer {
217 return b.Buffer
218}
219
220func TestIsRequestBodyTooLargeRegression(t *testing.T) {
221 _, err := io.ReadAll(http.MaxBytesReader(httptest.NewRecorder(), io.NopCloser(bytes.NewReader([]byte{1, 2, 3, 4})), 1))

Callers 1

tryBufferFromReaderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected