pub struct Branch {
pub line_start: u64,
pub column_start: u64,
pub line_end: u64,
pub column_end: u64,
pub execution_count: u64,
pub false_execution_count: u64,
pub file_id: u64,
pub expanded_file_id: u64,
pub region_kind: RegionKind,
}
Expand description
A single branch and associated metrics. According to the LLVM documentation, a branch “may comprise larger boolean expressions using boolean logical operators”, thus a the term branch refers to a branch found on source code level, not on binary level. See CoverageExporterJson.cpp for details regarding the format.
Fields§
§line_start: u64
Source line this branch condition starts.
column_start: u64
Column of line_start
this branch starts.
line_end: u64
Source line where the branch ends.
column_end: u64
Column of line_end
where the branch ends.
execution_count: u64
Number of times the true branch was taken.
false_execution_count: u64
Number of times the false branch was taken.
file_id: u64
The file id this branch orginatess from. If this is part of an expansion, this is, e.g., the header file.
expanded_file_id: u64
The file id where this branch has been expanded to. I.e., if branches are introduced via a macro, this is the file that used the macro.
region_kind: RegionKind
The kind of this region.