forge::coverage::anchors

Function find_anchors

Source
pub fn find_anchors(
    bytecode: &[u8],
    source_map: &Vec<SourceElement>,
    ic_pc_map: &IcPcMap,
    items: &[CoverageItem],
    items_by_source_id: &HashMap<usize, Vec<usize>, RandomState>,
) -> Vec<ItemAnchor>
Expand description

Attempts to find anchors for the given items using the given source map and bytecode.