MCPcopy
hub / github.com/cool-RR/PySnooper / _check_content

Method _check_content

tests/utils.py:256–262  ·  view source on GitHub ↗
(self, source_path)

Source from the content-addressed store, hash-verified

254 return bool(self._preamble_pattern.match(preamble))
255
256 def _check_content(self, source_path):
257 if self.source_path is not None:
258 return source_path == self.source_path
259 elif self.source_path_regex is not None:
260 return self.source_path_regex.match(source_path)
261 else:
262 return True
263
264
265class _BaseEventEntry(_BaseEntry):

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected