[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:
Ruixiang Tan
2025-07-30 07:20:43 -07:00
committed by GitHub
parent 36ede45989
commit 8f4a1c9a04
6 changed files with 18 additions and 22 deletions
+2 -2
View File
@@ -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