MCPcopy Index your code
hub / github.com/cool-RR/PySnooper / _check_name

Method _check_name

tests/utils.py:178–184  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

176 return self._check_name(name) and self._check_value(value)
177
178 def _check_name(self, name):
179 if self.name is not None:
180 return name == self.name
181 elif self.name_regex is not None:
182 return self.name_regex.match(name)
183 else:
184 return True
185
186 def _check_value(self, value):
187 if self.value is not None:

Callers 1

_check_contentMethod · 0.95

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected