MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / BytesRead

Method BytesRead

asyncbuffer/buffer_test.go:43–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41func (r *countingReader) Close() error { return nil }
42
43func (r *countingReader) BytesRead() int64 {
44 return r.n.Load()
45}
46
47// erraticReader is a test reader that simulates a slow read and can fail after reading a certain number of bytes
48type erraticReader struct {

Callers 3

ReadMethod · 0.80
TestAsyncBufferThresholdFunction · 0.80

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected