pub struct CoverageDataItem {
pub branches_covered: Option<i64>,
pub branches_total: Option<i64>,
pub coverage_percentage: f64,
pub covered_lines: i64,
pub file_path: String,
pub lines_covered: Vec<i64>,
pub lines_missed: Option<Vec<i64>>,
pub metadata: Option<Map<String, Value>>,
pub total_lines: i64,
}Expand description
Code coverage data for a single file.
JSON schema
{
"title": "CoverageDataItem",
"description": "Code coverage data for a single file.",
"type": "object",
"required": [
"coverage_percentage",
"covered_lines",
"file_path",
"lines_covered",
"total_lines"
],
"properties": {
"branches_covered": {
"title": "Branches Covered",
"description": "Number of branches executed",
"type": [
"integer",
"null"
]
},
"branches_total": {
"title": "Branches Total",
"description": "Total number of branches",
"type": [
"integer",
"null"
]
},
"coverage_percentage": {
"title": "Coverage Percentage",
"description": "Coverage percentage",
"type": "number",
"maximum": 100.0,
"minimum": 0.0
},
"covered_lines": {
"title": "Covered Lines",
"description": "Number of lines executed",
"type": "integer"
},
"file_path": {
"title": "File Path",
"description": "File path relative to project root",
"type": "string"
},
"lines_covered": {
"title": "Lines Covered",
"description": "List of line numbers that were executed",
"type": "array",
"items": {
"type": "integer"
}
},
"lines_missed": {
"title": "Lines Missed",
"description": "List of line numbers not executed",
"type": [
"array",
"null"
],
"items": {
"type": "integer"
}
},
"metadata": {
"title": "Metadata",
"description": "Additional metadata",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"total_lines": {
"title": "Total Lines",
"description": "Total number of executable lines",
"type": "integer"
}
}
}Fields§
§branches_covered: Option<i64>Number of branches executed
branches_total: Option<i64>Total number of branches
coverage_percentage: f64§covered_lines: i64Number of lines executed
file_path: StringFile path relative to project root
lines_covered: Vec<i64>List of line numbers that were executed
lines_missed: Option<Vec<i64>>List of line numbers not executed
metadata: Option<Map<String, Value>>Additional metadata
total_lines: i64Total number of executable lines
Implementations§
Source§impl CoverageDataItem
impl CoverageDataItem
pub fn builder() -> CoverageDataItem
Trait Implementations§
Source§impl Clone for CoverageDataItem
impl Clone for CoverageDataItem
Source§fn clone(&self) -> CoverageDataItem
fn clone(&self) -> CoverageDataItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoverageDataItem
impl Debug for CoverageDataItem
Source§impl<'de> Deserialize<'de> for CoverageDataItem
impl<'de> Deserialize<'de> for CoverageDataItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CoverageDataItem> for CoverageDataItem
impl From<&CoverageDataItem> for CoverageDataItem
Source§fn from(value: &CoverageDataItem) -> Self
fn from(value: &CoverageDataItem) -> Self
Converts to this type from the input type.
Source§impl From<CoverageDataItem> for CoverageDataItem
impl From<CoverageDataItem> for CoverageDataItem
Source§fn from(value: CoverageDataItem) -> Self
fn from(value: CoverageDataItem) -> Self
Converts to this type from the input type.
Source§impl Serialize for CoverageDataItem
impl Serialize for CoverageDataItem
Source§impl TryFrom<CoverageDataItem> for CoverageDataItem
impl TryFrom<CoverageDataItem> for CoverageDataItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CoverageDataItem) -> Result<Self, ConversionError>
fn try_from(value: CoverageDataItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CoverageDataItem
impl RefUnwindSafe for CoverageDataItem
impl Send for CoverageDataItem
impl Sync for CoverageDataItem
impl Unpin for CoverageDataItem
impl UnwindSafe for CoverageDataItem
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