(self, amt=None)
| 281 | return self._checksum |
| 282 | |
| 283 | def read(self, amt=None): |
| 284 | chunk = super().read(amt=amt) |
| 285 | self._checksum.update(chunk) |
| 286 | if amt is None or (not chunk and amt > 0): |
| 287 | self._validate_checksum() |
| 288 | return chunk |
| 289 | |
| 290 | def _validate_checksum(self): |
| 291 | if self._expected is None: |
nothing calls this directly
no test coverage detected