Struct gapi_grpc::google::devtools::resultstore::v2::BranchCoverage[][src]

pub struct BranchCoverage {
    pub branch_present: Vec<u8>,
    pub branches_in_line: Vec<i32>,
    pub executed: Vec<u8>,
    pub taken: Vec<u8>,
}

Describes branch coverage for a file

Fields

branch_present: Vec<u8>

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: Vec<u8>

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: Vec<u8>

Described above.

Trait Implementations

impl Clone for BranchCoverage[src]

impl Debug for BranchCoverage[src]

impl Default for BranchCoverage[src]

impl Message for BranchCoverage[src]

impl PartialEq<BranchCoverage> for BranchCoverage[src]

impl StructuralPartialEq for BranchCoverage[src]

Auto Trait Implementations

impl RefUnwindSafe for BranchCoverage

impl Send for BranchCoverage

impl Sync for BranchCoverage

impl Unpin for BranchCoverage

impl UnwindSafe for BranchCoverage

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]