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

Method test_duplicate_count_tracking

tests/chat/state/test_cache.py:37–43  ·  view source on GitHub ↗

Test duplicate count is tracked.

(self, cache)

Source from the content-addressed store, hash-verified

35 assert cached2.call_count == 3
36
37 def test_duplicate_count_tracking(self, cache):
38 """Test duplicate count is tracked."""
39 cache.put("sqrt", {"x": 18}, 4.2426)
40 assert cache.duplicate_count == 0
41
42 cache.get("sqrt", {"x": 18})
43 assert cache.duplicate_count == 1
44
45 def test_store_variable(self, cache):
46 """Test storing named variables."""

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected