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

Function _diff_text_block

src/_pytest/assertion/compare_text.py:28–33  ·  view source on GitHub ↗
(left: str, right: str)

Source from the content-addressed store, hash-verified

26
27
28def _diff_text_block(left: str, right: str) -> Iterator[str]:
29 yield "Left:"
30 yield from _format_text_block_lines(left)
31 yield ""
32 yield "Right:"
33 yield from _format_text_block_lines(right)
34
35
36def _format_text_block_lines(text: str) -> Iterator[str]:

Callers 1

_compare_eq_textFunction · 0.85

Calls 1

_format_text_block_linesFunction · 0.85

Tested by

no test coverage detected