From a60633c3404c98d97d6e05c84c2fc121f2343d9a Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 28 Apr 2015 17:07:23 +0200 Subject: Remove useless ResourceSnapshotMapper and rename folder dependency to design --- .../sonar/batch/protocol/output/BatchReport.java | 180 +++++++++++++++++++-- 1 file changed, 170 insertions(+), 10 deletions(-) (limited to 'sonar-batch-protocol/src') diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java index c70067cdd98..981a8877125 100644 --- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java +++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java @@ -19508,7 +19508,7 @@ public final class BatchReport { * optional int32 conditions = 2; * *
-     * Number of conditions to cover (never 0)
+     * Number of conditions to cover (if set, the value must be greater than 0)
      * 
*/ boolean hasConditions(); @@ -19516,53 +19516,93 @@ public final class BatchReport { * optional int32 conditions = 2; * *
-     * Number of conditions to cover (never 0)
+     * Number of conditions to cover (if set, the value must be greater than 0)
      * 
*/ int getConditions(); /** * optional bool ut_hits = 3; + * + *
+     * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
+     * 
*/ boolean hasUtHits(); /** * optional bool ut_hits = 3; + * + *
+     * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
+     * 
*/ boolean getUtHits(); /** * optional bool it_hits = 4; + * + *
+     * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
+     * 
*/ boolean hasItHits(); /** * optional bool it_hits = 4; + * + *
+     * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
+     * 
*/ boolean getItHits(); /** * optional int32 ut_covered_conditions = 5; + * + *
+     * Number of conditions covered by unit tests
+     * 
*/ boolean hasUtCoveredConditions(); /** * optional int32 ut_covered_conditions = 5; + * + *
+     * Number of conditions covered by unit tests
+     * 
*/ int getUtCoveredConditions(); /** * optional int32 it_covered_conditions = 6; + * + *
+     * Number of conditions covered by integration tests
+     * 
*/ boolean hasItCoveredConditions(); /** * optional int32 it_covered_conditions = 6; + * + *
+     * Number of conditions covered by integration tests
+     * 
*/ int getItCoveredConditions(); /** * optional int32 overall_covered_conditions = 7; + * + *
+     * Number of conditions covered by overall tests
+     * 
*/ boolean hasOverallCoveredConditions(); /** * optional int32 overall_covered_conditions = 7; + * + *
+     * Number of conditions covered by overall tests
+     * 
*/ int getOverallCoveredConditions(); } @@ -19570,7 +19610,7 @@ public final class BatchReport { * Protobuf type {@code Coverage} * *
-   * Only FILE component has coverage information
+   * Only FILE component has coverage information, and only executable lines should contains this information.
    * TODO rename it LineCoverage ?
    * 
*/ @@ -19719,7 +19759,7 @@ public final class BatchReport { * optional int32 conditions = 2; * *
-     * Number of conditions to cover (never 0)
+     * Number of conditions to cover (if set, the value must be greater than 0)
      * 
*/ public boolean hasConditions() { @@ -19729,7 +19769,7 @@ public final class BatchReport { * optional int32 conditions = 2; * *
-     * Number of conditions to cover (never 0)
+     * Number of conditions to cover (if set, the value must be greater than 0)
      * 
*/ public int getConditions() { @@ -19740,12 +19780,20 @@ public final class BatchReport { private boolean utHits_; /** * optional bool ut_hits = 3; + * + *
+     * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
+     * 
*/ public boolean hasUtHits() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool ut_hits = 3; + * + *
+     * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
+     * 
*/ public boolean getUtHits() { return utHits_; @@ -19755,12 +19803,20 @@ public final class BatchReport { private boolean itHits_; /** * optional bool it_hits = 4; + * + *
+     * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
+     * 
*/ public boolean hasItHits() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool it_hits = 4; + * + *
+     * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
+     * 
*/ public boolean getItHits() { return itHits_; @@ -19770,12 +19826,20 @@ public final class BatchReport { private int utCoveredConditions_; /** * optional int32 ut_covered_conditions = 5; + * + *
+     * Number of conditions covered by unit tests
+     * 
*/ public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 ut_covered_conditions = 5; + * + *
+     * Number of conditions covered by unit tests
+     * 
*/ public int getUtCoveredConditions() { return utCoveredConditions_; @@ -19785,12 +19849,20 @@ public final class BatchReport { private int itCoveredConditions_; /** * optional int32 it_covered_conditions = 6; + * + *
+     * Number of conditions covered by integration tests
+     * 
*/ public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 it_covered_conditions = 6; + * + *
+     * Number of conditions covered by integration tests
+     * 
*/ public int getItCoveredConditions() { return itCoveredConditions_; @@ -19800,12 +19872,20 @@ public final class BatchReport { private int overallCoveredConditions_; /** * optional int32 overall_covered_conditions = 7; + * + *
+     * Number of conditions covered by overall tests
+     * 
*/ public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int32 overall_covered_conditions = 7; + * + *
+     * Number of conditions covered by overall tests
+     * 
*/ public int getOverallCoveredConditions() { return overallCoveredConditions_; @@ -19973,7 +20053,7 @@ public final class BatchReport { * Protobuf type {@code Coverage} * *
-     * Only FILE component has coverage information
+     * Only FILE component has coverage information, and only executable lines should contains this information.
      * TODO rename it LineCoverage ?
      * 
*/ @@ -20184,7 +20264,7 @@ public final class BatchReport { * optional int32 conditions = 2; * *
-       * Number of conditions to cover (never 0)
+       * Number of conditions to cover (if set, the value must be greater than 0)
        * 
*/ public boolean hasConditions() { @@ -20194,7 +20274,7 @@ public final class BatchReport { * optional int32 conditions = 2; * *
-       * Number of conditions to cover (never 0)
+       * Number of conditions to cover (if set, the value must be greater than 0)
        * 
*/ public int getConditions() { @@ -20204,7 +20284,7 @@ public final class BatchReport { * optional int32 conditions = 2; * *
-       * Number of conditions to cover (never 0)
+       * Number of conditions to cover (if set, the value must be greater than 0)
        * 
*/ public Builder setConditions(int value) { @@ -20217,7 +20297,7 @@ public final class BatchReport { * optional int32 conditions = 2; * *
-       * Number of conditions to cover (never 0)
+       * Number of conditions to cover (if set, the value must be greater than 0)
        * 
*/ public Builder clearConditions() { @@ -20230,18 +20310,30 @@ public final class BatchReport { private boolean utHits_ ; /** * optional bool ut_hits = 3; + * + *
+       * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
+       * 
*/ public boolean hasUtHits() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool ut_hits = 3; + * + *
+       * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
+       * 
*/ public boolean getUtHits() { return utHits_; } /** * optional bool ut_hits = 3; + * + *
+       * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
+       * 
*/ public Builder setUtHits(boolean value) { bitField0_ |= 0x00000004; @@ -20251,6 +20343,10 @@ public final class BatchReport { } /** * optional bool ut_hits = 3; + * + *
+       * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
+       * 
*/ public Builder clearUtHits() { bitField0_ = (bitField0_ & ~0x00000004); @@ -20262,18 +20358,30 @@ public final class BatchReport { private boolean itHits_ ; /** * optional bool it_hits = 4; + * + *
+       * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
+       * 
*/ public boolean hasItHits() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool it_hits = 4; + * + *
+       * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
+       * 
*/ public boolean getItHits() { return itHits_; } /** * optional bool it_hits = 4; + * + *
+       * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
+       * 
*/ public Builder setItHits(boolean value) { bitField0_ |= 0x00000008; @@ -20283,6 +20391,10 @@ public final class BatchReport { } /** * optional bool it_hits = 4; + * + *
+       * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
+       * 
*/ public Builder clearItHits() { bitField0_ = (bitField0_ & ~0x00000008); @@ -20294,18 +20406,30 @@ public final class BatchReport { private int utCoveredConditions_ ; /** * optional int32 ut_covered_conditions = 5; + * + *
+       * Number of conditions covered by unit tests
+       * 
*/ public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 ut_covered_conditions = 5; + * + *
+       * Number of conditions covered by unit tests
+       * 
*/ public int getUtCoveredConditions() { return utCoveredConditions_; } /** * optional int32 ut_covered_conditions = 5; + * + *
+       * Number of conditions covered by unit tests
+       * 
*/ public Builder setUtCoveredConditions(int value) { bitField0_ |= 0x00000010; @@ -20315,6 +20439,10 @@ public final class BatchReport { } /** * optional int32 ut_covered_conditions = 5; + * + *
+       * Number of conditions covered by unit tests
+       * 
*/ public Builder clearUtCoveredConditions() { bitField0_ = (bitField0_ & ~0x00000010); @@ -20326,18 +20454,30 @@ public final class BatchReport { private int itCoveredConditions_ ; /** * optional int32 it_covered_conditions = 6; + * + *
+       * Number of conditions covered by integration tests
+       * 
*/ public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 it_covered_conditions = 6; + * + *
+       * Number of conditions covered by integration tests
+       * 
*/ public int getItCoveredConditions() { return itCoveredConditions_; } /** * optional int32 it_covered_conditions = 6; + * + *
+       * Number of conditions covered by integration tests
+       * 
*/ public Builder setItCoveredConditions(int value) { bitField0_ |= 0x00000020; @@ -20347,6 +20487,10 @@ public final class BatchReport { } /** * optional int32 it_covered_conditions = 6; + * + *
+       * Number of conditions covered by integration tests
+       * 
*/ public Builder clearItCoveredConditions() { bitField0_ = (bitField0_ & ~0x00000020); @@ -20358,18 +20502,30 @@ public final class BatchReport { private int overallCoveredConditions_ ; /** * optional int32 overall_covered_conditions = 7; + * + *
+       * Number of conditions covered by overall tests
+       * 
*/ public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int32 overall_covered_conditions = 7; + * + *
+       * Number of conditions covered by overall tests
+       * 
*/ public int getOverallCoveredConditions() { return overallCoveredConditions_; } /** * optional int32 overall_covered_conditions = 7; + * + *
+       * Number of conditions covered by overall tests
+       * 
*/ public Builder setOverallCoveredConditions(int value) { bitField0_ |= 0x00000040; @@ -20379,6 +20535,10 @@ public final class BatchReport { } /** * optional int32 overall_covered_conditions = 7; + * + *
+       * Number of conditions covered by overall tests
+       * 
*/ public Builder clearOverallCoveredConditions() { bitField0_ = (bitField0_ & ~0x00000040); -- cgit v1.2.3