Class CodeCoverage
- java.lang.Object
-
- software.amazon.awssdk.services.codebuild.model.CodeCoverage
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CodeCoverage.Builder,CodeCoverage>
@Generated("software.amazon.awssdk:codegen") public final class CodeCoverage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CodeCoverage.Builder,CodeCoverage>
Contains code coverage report information.
Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.
Branch coverage determines if your tests cover every possible branch of a control structure, such as an
iforcasestatement.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCodeCoverage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublebranchCoveragePercentage()The percentage of branches that are covered by your tests.IntegerbranchesCovered()The number of conditional branches that are covered by your tests.IntegerbranchesMissed()The number of conditional branches that are not covered by your tests.static CodeCoverage.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Instantexpired()The date and time that the tests were run.StringfilePath()The path of the test report file.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The identifier of the code coverage report.DoublelineCoveragePercentage()The percentage of lines that are covered by your tests.IntegerlinesCovered()The number of lines that are covered by your tests.IntegerlinesMissed()The number of lines that are not covered by your tests.StringreportARN()The ARN of the report.List<SdkField<?>>sdkFields()static Class<? extends CodeCoverage.Builder>serializableBuilderClass()CodeCoverage.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The identifier of the code coverage report.
- Returns:
- The identifier of the code coverage report.
-
reportARN
public final String reportARN()
The ARN of the report.
- Returns:
- The ARN of the report.
-
filePath
public final String filePath()
The path of the test report file.
- Returns:
- The path of the test report file.
-
lineCoveragePercentage
public final Double lineCoveragePercentage()
The percentage of lines that are covered by your tests.
- Returns:
- The percentage of lines that are covered by your tests.
-
linesCovered
public final Integer linesCovered()
The number of lines that are covered by your tests.
- Returns:
- The number of lines that are covered by your tests.
-
linesMissed
public final Integer linesMissed()
The number of lines that are not covered by your tests.
- Returns:
- The number of lines that are not covered by your tests.
-
branchCoveragePercentage
public final Double branchCoveragePercentage()
The percentage of branches that are covered by your tests.
- Returns:
- The percentage of branches that are covered by your tests.
-
branchesCovered
public final Integer branchesCovered()
The number of conditional branches that are covered by your tests.
- Returns:
- The number of conditional branches that are covered by your tests.
-
branchesMissed
public final Integer branchesMissed()
The number of conditional branches that are not covered by your tests.
- Returns:
- The number of conditional branches that are not covered by your tests.
-
expired
public final Instant expired()
The date and time that the tests were run.
- Returns:
- The date and time that the tests were run.
-
toBuilder
public CodeCoverage.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CodeCoverage.Builder,CodeCoverage>
-
builder
public static CodeCoverage.Builder builder()
-
serializableBuilderClass
public static Class<? extends CodeCoverage.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-