[Misc] Improve code readability of KVCacheManager (#21673)
Signed-off-by: tanruixiang <tanruixiang0104@gmail.com> Signed-off-by: Ruixiang Tan <819464715@qq.com> Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
@@ -112,9 +112,9 @@ def test_kv_cache_block():
|
||||
assert block.block_hash is None
|
||||
|
||||
# Test reference count manipulation
|
||||
block.incr_ref()
|
||||
block.ref_cnt += 1
|
||||
assert block.ref_cnt == 1
|
||||
block.decr_ref()
|
||||
block.ref_cnt -= 1
|
||||
assert block.ref_cnt == 0
|
||||
|
||||
# Test block hash setting and resetting
|
||||
|
||||
Reference in New Issue
Block a user