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

Function dict_subset_eq

tests/test_askrene.py:644–646  ·  view source on GitHub ↗

Is every key in B is the same in A?

(a, b)

Source from the content-addressed store, hash-verified

642def check_route_as_expected(routes, paths):
643 """Make sure all fields in paths are match those in routes"""
644 def dict_subset_eq(a, b):
645 """Is every key in B is the same in A?"""
646 return all(a.get(key) == b[key] for key in b)
647
648 for path in paths:
649 found = False

Callers 1

check_route_as_expectedFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected