(p []byte)
| 79 | } |
| 80 | |
| 81 | func (c *checkHashReader) Read(p []byte) (n int, err error) { |
| 82 | n, err = c.src.Read(p) |
| 83 | c.h.Write(p[:n]) |
| 84 | if err == io.EOF && !c.br.HashMatches(c.h) { |
| 85 | err = ErrCorruptBlob |
| 86 | c.corrupt = true |
| 87 | } |
| 88 | return |
| 89 | } |
nothing calls this directly
no test coverage detected