Skip to main content

Module line_blocks

Module line_blocks 

Source
Expand description

Line-block containment for deduplicating tool output streams.

Multiple renderers need to know whether one stream’s text already appears inside another (merged output vs named stdout/stderr) so each line is shown once. This module is the single home; the runloop pipe-stream canonicalizer and the lifecycle summary aggregator used to carry verbatim copies and now delegate here.

Functions§

contains_distinct_line_blocks
True when first and second both occur in container in non-overlapping ranges. Requiring distinct blocks matters when the streams are identical or one is a prefix of the other: a single occurrence cannot prove both are copies. The container lines are collected once for both scans.
contains_line_block
True when candidate occurs in container as a contiguous line block.