aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-protocol
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2016-03-29 18:13:12 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2016-03-30 11:32:39 +0200
commit946a448c08ccc10ad1c0af778ae5d9f179655ef8 (patch)
tree14acab59210015b9a2e3aeba04a7b54bcfa5fc19 /sonar-scanner-protocol
parent2cf5d0f82c96846af16007233b674e0e5c638eea (diff)
downloadsonarqube-946a448c08ccc10ad1c0af778ae5d9f179655ef8.tar.gz
sonarqube-946a448c08ccc10ad1c0af778ae5d9f179655ef8.zip
SONAR-7497 Restore behavior for line coverage after move to proto3
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