MCPcopy Index your code
hub / github.com/pydata/xarray / summarize

Method summarize

xarray/tests/test_backends.py:3920–3928  ·  view source on GitHub ↗
(self, patches)

Source from the content-addressed store, hash-verified

3918 }
3919
3920 def summarize(self, patches):
3921 summary = {}
3922 for name, patch_ in patches.items():
3923 count = 0
3924 for call in patch_.mock_calls:
3925 if "zarr.json" not in call.args:
3926 count += 1
3927 summary[name.strip("_")] = count
3928 return summary
3929
3930 def check_requests(self, expected, patches):
3931 summary = self.summarize(patches)

Callers 1

check_requestsMethod · 0.95

Calls 2

itemsMethod · 0.80
stripMethod · 0.80

Tested by

no test coverage detected