MCPcopy
hub / github.com/SWE-agent/mini-swe-agent / test_nested_dict_merge

Function test_nested_dict_merge

tests/utils/test_serialize.py:19–23  ·  view source on GitHub ↗

Test that nested dictionaries are merged recursively.

()

Source from the content-addressed store, hash-verified

17
18
19def test_nested_dict_merge():
20 """Test that nested dictionaries are merged recursively."""
21 dict1 = {"a": {"x": 1, "y": 2}, "b": 3}
22 dict2 = {"a": {"y": 3, "z": 4}, "c": 5}
23 assert recursive_merge(dict1, dict2) == {"a": {"x": 1, "y": 3, "z": 4}, "b": 3, "c": 5}
24
25
26def test_deeply_nested_merge():

Callers

nothing calls this directly

Calls 1

recursive_mergeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…