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

Method test_split_layers

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

Source from the content-addressed store, hash-verified

487 LayerCacheEngineKey.from_string("m@1@0@ab@half@3@badtag")
488
489 def test_split_layers(self, layer_key):
490 layers = layer_key.split_layers(4)
491 assert len(layers) == 4
492 for i, lk in enumerate(layers):
493 assert lk.layer_id == i
494
495
496# ============================================================

Callers

nothing calls this directly

Calls 1

split_layersMethod · 0.45

Tested by

no test coverage detected