MCPcopy
hub / github.com/aws/aws-cli / read

Method read

awscli/botocore/httpchecksum.py:283–288  ·  view source on GitHub ↗
(self, amt=None)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 3

_validate_checksumMethod · 0.95
readMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected