Struct move_coverage::coverage_map::CoverageMap
source · [−]pub struct CoverageMap {
pub exec_maps: BTreeMap<String, ExecCoverageMap>,
}
Fields
exec_maps: BTreeMap<String, ExecCoverageMap>
Implementations
sourceimpl CoverageMap
impl CoverageMap
sourcepub fn update_coverage_from_trace_file<P: AsRef<Path> + Debug>(
self,
filename: P
) -> Self
pub fn update_coverage_from_trace_file<P: AsRef<Path> + Debug>(
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> + Debug>(filename: P) -> Self
pub fn from_trace_file<P: AsRef<Path> + Debug>(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> + Debug>(filename: P) -> Result<Self>
pub fn from_binary_file<P: AsRef<Path> + Debug>(filename: P) -> Result<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
sourceimpl Debug for CoverageMap
impl Debug for CoverageMap
sourceimpl<'de> Deserialize<'de> for CoverageMap
impl<'de> Deserialize<'de> for CoverageMap
sourcefn 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
sourceimpl Serialize for CoverageMap
impl Serialize for CoverageMap
Auto Trait Implementations
impl RefUnwindSafe for CoverageMap
impl Send for CoverageMap
impl Sync for CoverageMap
impl Unpin for CoverageMap
impl UnwindSafe for CoverageMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more