[kimi] Add unit tests for sovereignty/perception_cache.py (#1261) #1301
Reference in New Issue
Block a user
Delete Branch "kimi/issue-1261"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1261
Summary
Added comprehensive unit tests for
src/timmy/sovereignty/perception_cache.pywhich implements the PerceptionCache for template matching (VLM replacement path).Changes
tests/sovereignty/__init__.pytests/sovereignty/test_perception_cache.pywith 25 test cases:Test Coverage
Cache Initialization (
TestPerceptionCacheInit):Dataclasses (
TestTemplate,TestCacheResult):Template Matching (
TestPerceptionCacheMatch):Cache Modification (
TestPerceptionCacheAdd):Persistence (
TestPerceptionCachePersist):Loading (
TestPerceptionCacheLoad):Crystallize (
TestCrystallizePerception):Testing
All 500 unit tests pass including the 25 new tests: