pub struct Record {
pub test_name: TestNameRecordEntry,
pub source_file: SourceFileRecordEntry,
pub version: Option<VersionRecordEntry>,
pub functions: BTreeMap<usize, FunctionRecordEntry>,
pub function_data: HashMap<String, FunctionDataRecordEntry>,
pub functions_found: Option<FunctionsFoundRecordEntry>,
pub functions_hit: Option<FunctionsHitRecordEntry>,
pub lines: BTreeMap<usize, LineRecordEntry>,
pub lines_found: Option<LinesFoundRecordEntry>,
pub lines_hit: Option<LinesHitRecordEntry>,
pub end_of_record: EndOfRecordEntry,
}
Expand description
A single record section, which contains information about a single source file for a single test
Fields§
§test_name: TestNameRecordEntry
The name of the test
source_file: SourceFileRecordEntry
The source file
version: Option<VersionRecordEntry>
The version of the source file
functions: BTreeMap<usize, FunctionRecordEntry>
§function_data: HashMap<String, FunctionDataRecordEntry>
§functions_found: Option<FunctionsFoundRecordEntry>
§functions_hit: Option<FunctionsHitRecordEntry>
§lines: BTreeMap<usize, LineRecordEntry>
§lines_found: Option<LinesFoundRecordEntry>
§lines_hit: Option<LinesHitRecordEntry>
§end_of_record: EndOfRecordEntry
Implementations§
Source§impl Record
impl Record
pub fn new<P>(path: P) -> Self
pub fn add_function_if_not_exists<S>( &mut self, start_line: usize, end_line: Option<usize>, name: S, ) -> bool
pub fn increment_function_data<S>(&mut self, name: S)
pub fn add_line_if_not_exists(&mut self, line_number: usize) -> bool
pub fn increment_line(&mut self, line_number: usize)
Trait Implementations§
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more