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

Method _check_value

tests/utils.py:221–227  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

219 return self._check_value(content)
220
221 def _check_value(self, value):
222 if self.value is not None:
223 return value == self.value
224 elif self.value_regex is not None:
225 return self.value_regex.match(value)
226 else:
227 return True
228
229class ReturnValueEntry(_BaseSimpleValueEntry):
230 _preamble_pattern = re.compile(

Callers 1

_check_contentMethod · 0.95

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected