MCPcopy
hub / github.com/minio/minio-go / mustCrcReader

Function mustCrcReader

functional_tests.go:310–317  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

308}
309
310func mustCrcReader(r io.Reader) uint32 {
311 crc := crc32.NewIEEE()
312 _, err := io.Copy(crc, r)
313 if err != nil {
314 panic(err)
315 }
316 return crc.Sum32()
317}
318
319func crcMatches(r io.Reader, want uint32) error {
320 crc := crc32.NewIEEE()

Callers 2

getDataReaderFunction · 0.85
testGetObjectRangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected