MCPcopy Index your code
hub / github.com/google/brotli / _test_single_process

Method _test_single_process

python/tests/compressor_test.py:35–42  ·  view source on GitHub ↗
(self, test_data)

Source from the content-addressed store, hash-verified

33 self.assert_files_match(temp_uncompressed, original)
34
35 def _test_single_process(self, test_data):
36 # Write single-shot compression to temp file.
37 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
38 with open(temp_compressed, 'wb') as out_file:
39 with open(test_data, 'rb') as in_file:
40 out_file.write(self.compressor.process(in_file.read()))
41 out_file.write(self.compressor.finish())
42 self._check_decompression(test_data)
43
44 def _test_multiple_process(self, test_data):
45 # Write chunked compression to temp file.

Callers

nothing calls this directly

Calls 3

_check_decompressionMethod · 0.95
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected