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

Method test_eq_same_layer

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

Source from the content-addressed store, hash-verified

419 assert hash(layer_key) != hash(other)
420
421 def test_eq_same_layer(self, layer_key):
422 same = LayerCacheEngineKey(
423 model_name="model_b",
424 world_size=1,
425 worker_id=0,
426 chunk_hash=0xBEEF,
427 dtype=torch.float16,
428 layer_id=5,
429 )
430 assert layer_key == same
431
432 def test_eq_different_base_key(self, layer_key):
433 different = LayerCacheEngineKey(

Callers

nothing calls this directly

Calls 1

LayerCacheEngineKeyClass · 0.90

Tested by

no test coverage detected