MCPcopy
hub / github.com/pytest-dev/pytest / fullsource

Method fullsource

src/_pytest/_code/code.py:103–106  ·  view source on GitHub ↗

Return a _pytest._code.Source object for the full source file of the code.

(self)

Source from the content-addressed store, hash-verified

101
102 @property
103 def fullsource(self) -> Source | None:
104 """Return a _pytest._code.Source object for the full source file of the code."""
105 full, _ = findsource(self.raw)
106 return full
107
108 def source(self) -> Source:
109 """Return a _pytest._code.Source object for the code object's source only."""

Callers

nothing calls this directly

Calls 1

findsourceFunction · 0.90

Tested by

no test coverage detected