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

Method test_from_string_roundtrip

tests/test_utils.py:462–465  ·  view source on GitHub ↗
(self, layer_key)

Source from the content-addressed store, hash-verified

460 assert "foo%bar" in s
461
462 def test_from_string_roundtrip(self, layer_key):
463 s = layer_key.to_string()
464 restored = LayerCacheEngineKey.from_string(s)
465 assert restored == layer_key
466
467 def test_from_string_with_tags(self):
468 key = LayerCacheEngineKey(

Callers

nothing calls this directly

Calls 2

to_stringMethod · 0.45
from_stringMethod · 0.45

Tested by

no test coverage detected