Skip to main content

Module testrun

Module testrun 

Source
Expand description

Pure helpers behind ct-test’s output handling — currently the --focus distiller, which reduces a captured stream to the lines that matter.

Functions§

focus_block
Distil text to the lines matching re, each with ctx lines of context, merging overlapping windows; non-contiguous windows are separated by a -- line and every kept line is prefixed with its 1-based number. Returns None when nothing matches.