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

Method test_format_duplicate_message

tests/chat/state/test_cache.py:107–112  ·  view source on GitHub ↗

Test format_duplicate_message.

(self, cache)

Source from the content-addressed store, hash-verified

105 assert stats.total_variables == 1
106
107 def test_format_duplicate_message(self, cache):
108 """Test format_duplicate_message."""
109 cache.put("sqrt", {"x": 18}, 4.2426)
110 msg = cache.format_duplicate_message("sqrt", {"x": 18})
111 assert "sqrt" in msg
112 assert "4.2426" in msg or "cached" in msg.lower()
113
114 # -------------------------------------------------------------------------
115 # Additional coverage tests for uncovered lines

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected