MCPcopy Create free account
hub / github.com/pytest-dev/pytest / getfirstlinesource

Method getfirstlinesource

src/_pytest/_code/code.py:241–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

239 return self.frame.f_locals
240
241 def getfirstlinesource(self) -> int:
242 return self.frame.code.firstlineno
243
244 def getsource(
245 self, astcache: Optional[Dict[Union[str, Path], ast.AST]] = None

Callers 2

getsourceMethod · 0.95
repr_traceback_entryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected