Struct move_coverage::coverage_map::ModuleCoverageMap
source · pub struct ModuleCoverageMap {
pub module_addr: AccountAddress,
pub module_name: Identifier,
pub function_maps: BTreeMap<Identifier, FunctionCoverage>,
}
Fields§
§module_addr: AccountAddress
§module_name: Identifier
§function_maps: BTreeMap<Identifier, FunctionCoverage>
Implementations§
source§impl ModuleCoverageMap
impl ModuleCoverageMap
pub fn new(module_addr: AccountAddress, module_name: Identifier) -> Self
pub fn insert_multi(&mut self, func_name: Identifier, pc: u64, count: u64)
pub fn insert(&mut self, func_name: Identifier, pc: u64)
pub fn merge(&mut self, another: ModuleCoverageMap)
pub fn get_function_coverage( &self, func_name: &IdentStr ) -> Option<&FunctionCoverage>
Trait Implementations§
source§impl Debug for ModuleCoverageMap
impl Debug for ModuleCoverageMap
source§impl<'de> Deserialize<'de> for ModuleCoverageMap
impl<'de> Deserialize<'de> for ModuleCoverageMap
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