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

Method test_consistent_hash

tests/chat/state/test_models.py:51–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 """Tests for compute_args_hash."""
50
51 def test_consistent_hash(self):
52 args = {"x": 18, "y": 37}
53 hash1 = compute_args_hash(args)
54 hash2 = compute_args_hash(args)
55 assert hash1 == hash2
56
57 def test_order_independent(self):
58 hash1 = compute_args_hash({"a": 1, "b": 2})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected