MCPcopy Create free account
hub / github.com/diem/move / insert

Method insert

language/tools/move-coverage/src/coverage_map.rs:111–124  ·  view source on GitHub ↗

add entries in a cascading manner

(
        &mut self,
        exec_id: &str,
        module_addr: AccountAddress,
        module_name: Identifier,
        func_name: Identifier,
        pc: u64,
    )

Source from the content-addressed store, hash-verified

109
110 // add entries in a cascading manner
111 pub fn insert(
112 &mut self,
113 exec_id: &str,
114 module_addr: AccountAddress,
115 module_name: Identifier,
116 func_name: Identifier,
117 pc: u64,
118 ) {
119 let exec_entry = self
120 .exec_maps
121 .entry(exec_id.to_owned())
122 .or_insert_with(|| ExecCoverageMap::new(exec_id.to_owned()));
123 exec_entry.insert(module_addr, module_name, func_name, pc);
124 }
125
126 pub fn to_unified_exec_map(&self) -> ExecCoverageMap {
127 let mut unified_map = ExecCoverageMap::new(String::new());

Callers 15

summarize_path_covFunction · 0.45
process_dependencyMethod · 0.45
extend_renamingMethod · 0.45
parse_dependenciesFunction · 0.45
parse_addressesFunction · 0.45
parse_dev_addressesFunction · 0.45

Calls 4

entryMethod · 0.80
to_ownedMethod · 0.80
insert_multiMethod · 0.80
pushMethod · 0.45

Tested by 8

test_additonal_addressesFunction · 0.36
report_exec_stateMethod · 0.36
test_failureMethod · 0.36
test_successMethod · 0.36
collect_coverageFunction · 0.36
initMethod · 0.36