MCPcopy Create free account
hub / github.com/pydantic/jiter / test_python_cache_usage_keys

Function test_python_cache_usage_keys

crates/jiter-python/tests/test_jiter.py:248–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246
247
248def test_python_cache_usage_keys():
249 jiter.cache_clear()
250 parsed = jiter.from_json(b'{"foo": "bar", "spam": 3}', cache_mode='keys')
251 assert parsed == {'foo': 'bar', 'spam': 3}
252 assert jiter.cache_usage() == 2
253
254
255def test_python_cache_usage_none():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…