logo
pub struct CodeCoverage {
    pub branch_coverage_percentage: Option<f64>,
    pub branches_covered: Option<i64>,
    pub branches_missed: Option<i64>,
    pub expired: Option<f64>,
    pub file_path: Option<String>,
    pub id: Option<String>,
    pub line_coverage_percentage: Option<f64>,
    pub lines_covered: Option<i64>,
    pub lines_missed: Option<i64>,
    pub report_arn: Option<String>,
}
Expand description

Contains code coverage report information.

Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.

Branch coverage determines if your tests cover every possible branch of a control structure, such as an if or case statement.

Fields

branch_coverage_percentage: Option<f64>

The percentage of branches that are covered by your tests.

branches_covered: Option<i64>

The number of conditional branches that are covered by your tests.

branches_missed: Option<i64>

The number of conditional branches that are not covered by your tests.

expired: Option<f64>

The date and time that the tests were run.

file_path: Option<String>

The path of the test report file.

id: Option<String>

The identifier of the code coverage report.

line_coverage_percentage: Option<f64>

The percentage of lines that are covered by your tests.

lines_covered: Option<i64>

The number of lines that are covered by your tests.

lines_missed: Option<i64>

The number of lines that are not covered by your tests.

report_arn: Option<String>

The ARN of the report.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more