(r io.Reader)
| 308 | } |
| 309 | |
| 310 | func 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 | |
| 319 | func crcMatches(r io.Reader, want uint32) error { |
| 320 | crc := crc32.NewIEEE() |
no outgoing calls
no test coverage detected