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

Method test_get_first_layer

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

Source from the content-addressed store, hash-verified

349 assert layer_key.model_name == "test_model"
350
351 def test_get_first_layer(self, basic_key):
352 first = basic_key.get_first_layer()
353 assert isinstance(first, LayerCacheEngineKey)
354 assert first.layer_id == 0
355 assert first.model_name == basic_key.model_name
356
357 def test_chunk_hash_hex(self, basic_key):
358 assert basic_key.chunk_hash_hex == "abcd"

Callers

nothing calls this directly

Calls 1

get_first_layerMethod · 0.80

Tested by

no test coverage detected