Skip to main content

scan

Function scan 

Source
pub fn scan(path: &str, text: &str) -> Result<Vec<Region>>
Expand description

Scans text for coverage markers, returning the regions in source order.

path is used only to build error messages. Every malformed marker is a hard error naming path:line rather than a silent skip: a marker that does not take effect is worse than one that does not exist, because its author believes the noise is silenced.