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

Method test_split_layers

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

Source from the content-addressed store, hash-verified

341 assert new_key.chunk_hash == basic_key.chunk_hash
342
343 def test_split_layers(self, basic_key):
344 layers = basic_key.split_layers(3)
345 assert len(layers) == 3
346 for i, layer_key in enumerate(layers):
347 assert isinstance(layer_key, LayerCacheEngineKey)
348 assert layer_key.layer_id == i
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()

Callers

nothing calls this directly

Calls 1

split_layersMethod · 0.45

Tested by

no test coverage detected