MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_invalidate

Method test_invalidate

tests/test_file_state_cache.py:29–34  ·  view source on GitHub ↗
(self, cache)

Source from the content-addressed store, hash-verified

27
28 @pytest.mark.asyncio
29 async def test_invalidate(self, cache):
30 await cache.set("/tmp/test.txt", "hello")
31 assert cache.contains("/tmp/test.txt")
32 removed = await cache.invalidate("/tmp/test.txt")
33 assert removed is True
34 assert not cache.contains("/tmp/test.txt")
35
36 @pytest.mark.asyncio
37 async def test_invalidate_nonexistent(self, cache):

Callers

nothing calls this directly

Calls 3

containsMethod · 0.80
setMethod · 0.45
invalidateMethod · 0.45

Tested by

no test coverage detected