MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_cache_max_size

Function test_cache_max_size

test/test_settings.py:83–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82
83def test_cache_max_size() -> None:
84 original_max_size = pygit2.settings.cached_memory[1]
85 try:
86 pygit2.settings.cache_max_size(128 * 1024**2)
87 assert pygit2.settings.cached_memory[1] == 128 * 1024**2
88 pygit2.settings.cache_max_size(256 * 1024**2)
89 assert pygit2.settings.cached_memory[1] == 256 * 1024**2
90 finally:
91 pygit2.settings.cache_max_size(original_max_size)
92
93
94@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

cache_max_sizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…