in scripts/metric_reporter/reporter/coverage_reporter.py [0:0]
def dict_with_fieldnames(self) -> dict[str, Any]:
"""Convert the coverage result to a dictionary with field names.
Returns:
dict[str, Any]: Dictionary representation of the coverage result.
"""
return {
"Repository": self.repository,
"Workflow": self.workflow,
"Test Suite": self.test_suite,
"Date": self.date,
"Timestamp": self.timestamp,
"Job Number": self.job,
"Line Count": self.line_count,
"Line Covered": self.line_covered,
"Line Not Covered": self.line_not_covered,
"Line Excluded": self.line_excluded,
"Line Percent": self.line_percent,
"Function Count": self.function_count,
"Function Covered": self.function_covered,
"Function Not Covered": self.function_not_covered,
"Function Percent": self.function_percent,
"Branch Count": self.branch_count,
"Branch Covered": self.branch_covered,
"Branch Not Covered": self.branch_not_covered,
"Branch Percent": self.branch_percent,
}