##// END OF EJS Templates
nodemap: test various corruption scenario for the persistent nodemap...
nodemap: test various corruption scenario for the persistent nodemap Corruption can happens in the wild, either because some of our code is buggy or because repository were shared/transfered in a strange manners. Currently one of the corruption case (not enough data) lead to a crash. We add explicit tests for theses cases. Differential Revision: https://phab.mercurial-scm.org/D10457

File last commit:

r44446:de783805 default
r47732:99aed233 default
Show More
test_estimate_sizes.py
15 lines | 274 B | text/x-python | PythonLexer
import unittest
import zstandard as zstd
from .common import (
make_cffi,
TestCase,
)
@make_cffi
class TestSizes(TestCase):
def test_decompression_size(self):
size = zstd.estimate_decompression_context_size()
self.assertGreater(size, 100000)