foundry_evm_coverage::anchors

Function find_anchors

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

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