aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-protocol
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r--sonar-scanner-protocol/src/main/protobuf/scanner_report.proto20
1 files changed, 15 insertions, 5 deletions
diff --git a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
index 0d958a4eef7..f7ef467f06b 100644
--- a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
+++ b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
@@ -216,15 +216,25 @@ message LineCoverage {
// Number of conditions to cover (if set, the value must be greater than 0)
int32 conditions = 2;
// Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
- bool ut_hits = 3;
+ oneof has_ut_hits {
+ bool ut_hits = 3;
+ }
// Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
- bool it_hits = 4;
+ oneof has_it_hits {
+ bool it_hits = 4;
+ }
// Number of conditions covered by unit tests
- int32 ut_covered_conditions = 5;
+ oneof has_ut_covered_conditions {
+ int32 ut_covered_conditions = 5;
+ }
// Number of conditions covered by integration tests
- int32 it_covered_conditions = 6;
+ oneof has_it_covered_conditions {
+ int32 it_covered_conditions = 6;
+ }
// Number of conditions covered by overall tests
- int32 overall_covered_conditions = 7;
+ oneof has_overall_covered_conditions {
+ int32 overall_covered_conditions = 7;
+ }
}
// Must be sorted by line and start offset