Struct aws_sdk_codebuild::types::CodeCoverage
source · #[non_exhaustive]pub struct CodeCoverage {
pub id: Option<String>,
pub report_arn: Option<String>,
pub file_path: Option<String>,
pub line_coverage_percentage: Option<f64>,
pub lines_covered: Option<i32>,
pub lines_missed: Option<i32>,
pub branch_coverage_percentage: Option<f64>,
pub branches_covered: Option<i32>,
pub branches_missed: Option<i32>,
pub expired: Option<DateTime>,
}
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<String>
The identifier of the code coverage report.
report_arn: Option<String>
The ARN of the report.
file_path: Option<String>
The path of the test report file.
line_coverage_percentage: Option<f64>
The percentage of lines that are covered by your tests.
lines_covered: Option<i32>
The number of lines that are covered by your tests.
lines_missed: Option<i32>
The number of lines that are not covered by your tests.
branch_coverage_percentage: Option<f64>
The percentage of branches that are covered by your tests.
branches_covered: Option<i32>
The number of conditional branches that are covered by your tests.
branches_missed: Option<i32>
The number of conditional branches that are not covered by your tests.
expired: Option<DateTime>
The date and time that the tests were run.
Implementations§
source§impl CodeCoverage
impl CodeCoverage
sourcepub fn report_arn(&self) -> Option<&str>
pub fn report_arn(&self) -> Option<&str>
The ARN of the report.
sourcepub fn line_coverage_percentage(&self) -> Option<f64>
pub fn line_coverage_percentage(&self) -> Option<f64>
The percentage of lines that are covered by your tests.
sourcepub fn lines_covered(&self) -> Option<i32>
pub fn lines_covered(&self) -> Option<i32>
The number of lines that are covered by your tests.
sourcepub fn lines_missed(&self) -> Option<i32>
pub fn lines_missed(&self) -> Option<i32>
The number of lines that are not covered by your tests.
sourcepub fn branch_coverage_percentage(&self) -> Option<f64>
pub fn branch_coverage_percentage(&self) -> Option<f64>
The percentage of branches that are covered by your tests.
sourcepub fn branches_covered(&self) -> Option<i32>
pub fn branches_covered(&self) -> Option<i32>
The number of conditional branches that are covered by your tests.
sourcepub fn branches_missed(&self) -> Option<i32>
pub fn branches_missed(&self) -> Option<i32>
The number of conditional branches that are not covered by your tests.
source§impl CodeCoverage
impl CodeCoverage
sourcepub fn builder() -> CodeCoverageBuilder
pub fn builder() -> CodeCoverageBuilder
Creates a new builder-style object to manufacture CodeCoverage
.
Trait Implementations§
source§impl Clone for CodeCoverage
impl Clone for CodeCoverage
source§fn clone(&self) -> CodeCoverage
fn clone(&self) -> CodeCoverage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CodeCoverage
impl Debug for CodeCoverage
source§impl PartialEq for CodeCoverage
impl PartialEq for CodeCoverage
source§fn eq(&self, other: &CodeCoverage) -> bool
fn eq(&self, other: &CodeCoverage) -> bool
self
and other
values to be equal, and is used
by ==
.