MCPcopy Create free account
hub / github.com/ElementsProject/lightning / dict_subset_eq

Function dict_subset_eq

tests/test_askrene.py:691–693  ·  view source on GitHub ↗

Is every key in B is the same in A?

(a, b)

Source from the content-addressed store, hash-verified

689def check_route_as_expected(routes, paths):
690 """Make sure all fields in paths are match those in routes"""
691 def dict_subset_eq(a, b):
692 """Is every key in B is the same in A?"""
693 return all(a.get(key) == b[key] for key in b)
694
695 for path in paths:
696 found = False

Callers 1

check_route_as_expectedFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected