MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_cache_miss

Method test_cache_miss

tests/chat/state/test_cache.py:23–26  ·  view source on GitHub ↗

Test cache miss returns None.

(self, cache)

Source from the content-addressed store, hash-verified

21 assert cached.result == 4.2426
22
23 def test_cache_miss(self, cache):
24 """Test cache miss returns None."""
25 cached = cache.get("sqrt", {"x": 18})
26 assert cached is None
27
28 def test_duplicate_increments_count(self, cache):
29 """Test that duplicate calls increment count."""

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected