diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2016-03-29 18:13:12 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2016-03-30 11:32:39 +0200 |
commit | 946a448c08ccc10ad1c0af778ae5d9f179655ef8 (patch) | |
tree | 14acab59210015b9a2e3aeba04a7b54bcfa5fc19 /sonar-scanner-protocol | |
parent | 2cf5d0f82c96846af16007233b674e0e5c638eea (diff) | |
download | sonarqube-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.proto | 20 |
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 |