Struct move_coverage::coverage_map::CoverageMap
source · pub struct CoverageMap {
pub exec_maps: BTreeMap<String, ExecCoverageMap>,
}
Fields§
§exec_maps: BTreeMap<String, ExecCoverageMap>
Implementations§
source§impl CoverageMap
impl CoverageMap
sourcepub fn update_coverage_from_trace_file<P: AsRef<Path>>(self, filename: P) -> Self
pub fn update_coverage_from_trace_file<P: AsRef<Path>>(self, filename: P) -> Self
Takes in a file containing a raw VM trace, and returns an updated coverage map.
sourcepub fn from_trace_file<P: AsRef<Path>>(filename: P) -> Self
pub fn from_trace_file<P: AsRef<Path>>(filename: P) -> Self
Takes in a file containing a raw VM trace, and returns a coverage map.
sourcepub fn from_binary_file<P: AsRef<Path>>(filename: P) -> Self
pub fn from_binary_file<P: AsRef<Path>>(filename: P) -> Self
Takes in a file containing a serialized coverage map and returns a coverage map.
pub fn insert( &mut self, exec_id: &str, module_addr: AccountAddress, module_name: Identifier, func_name: Identifier, pc: u64 )
pub fn to_unified_exec_map(&self) -> ExecCoverageMap
Trait Implementations§
source§impl Debug for CoverageMap
impl Debug for CoverageMap
source§impl<'de> Deserialize<'de> for CoverageMap
impl<'de> Deserialize<'de> for CoverageMap
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more