Struct google_api_proto::google::devtools::resultstore::v2::BranchCoverage
source · pub struct BranchCoverage {
pub branch_present: Bytes,
pub branches_in_line: Vec<i32>,
pub executed: Bytes,
pub taken: Bytes,
}
Expand description
Describes branch coverage for a file
Fields§
§branch_present: Bytes
The field branch_present denotes the lines containing at least one branch.
This is a bitfield where i-th bit corresponds to the i-th line. Divide line number by 8 to get index into byte array. Mod line number by 8 to get bit number (0 = LSB, 7 = MSB).
A 1 denotes the line contains at least one branch. A 0 denotes the line contains no branches.
branches_in_line: Vec<i32>
Contains the number of branches present, only for the lines which have the corresponding bit set in branch_present, in a relative order ignoring lines which do not have any branches.
executed: Bytes
As each branch can have any one of the following three states: not executed, executed but not taken, executed and taken.
This is a bitfield where i-th bit corresponds to the i-th branch. Divide branch number by 8 to get index into byte array. Mod branch number by 8 to get bit number (0 = LSB, 7 = MSB).
i-th bit of the following two byte arrays are used to denote the above mentioned states.
not executed: i-th bit of executed == 0 && i-th bit of taken == 0 executed but not taken: i-th bit of executed == 1 && i-th bit of taken == 0 executed and taken: i-th bit of executed == 1 && i-th bit of taken == 1
taken: Bytes
Described above.
Trait Implementations§
source§impl Clone for BranchCoverage
impl Clone for BranchCoverage
source§fn clone(&self) -> BranchCoverage
fn clone(&self) -> BranchCoverage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BranchCoverage
impl Debug for BranchCoverage
source§impl Default for BranchCoverage
impl Default for BranchCoverage
source§impl Message for BranchCoverage
impl Message for BranchCoverage
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for BranchCoverage
impl PartialEq for BranchCoverage
source§fn eq(&self, other: &BranchCoverage) -> bool
fn eq(&self, other: &BranchCoverage) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BranchCoverage
Auto Trait Implementations§
impl !Freeze for BranchCoverage
impl RefUnwindSafe for BranchCoverage
impl Send for BranchCoverage
impl Sync for BranchCoverage
impl Unpin for BranchCoverage
impl UnwindSafe for BranchCoverage
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request