MCPcopy Create free account
hub / github.com/LMCache/LMCache / test_from_string_roundtrip

Method test_from_string_roundtrip

tests/test_utils.py:297–300  ·  view source on GitHub ↗
(self, basic_key)

Source from the content-addressed store, hash-verified

295 assert "version%v2" in s
296
297 def test_from_string_roundtrip(self, basic_key):
298 s = basic_key.to_string()
299 restored = CacheEngineKey.from_string(s)
300 assert restored == basic_key
301
302 def test_from_string_with_tags_roundtrip(self, key_with_tags):
303 s = key_with_tags.to_string()

Callers

nothing calls this directly

Calls 2

to_stringMethod · 0.45
from_stringMethod · 0.45

Tested by

no test coverage detected