

# CodeCoverage
<a name="API_CodeCoverage"></a>

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 `if` or `case` statement.

## Contents
<a name="API_CodeCoverage_Contents"></a>

**Note**  
In the following list, the required parameters are described first.

 ** branchCoveragePercentage **   <a name="CodeBuild-Type-CodeCoverage-branchCoveragePercentage"></a>
The percentage of branches that are covered by your tests.  
Type: Double  
Valid Range: Minimum value of 0. Maximum value of 100.  
Required: No

 ** branchesCovered **   <a name="CodeBuild-Type-CodeCoverage-branchesCovered"></a>
The number of conditional branches that are covered by your tests.  
Type: Integer  
Valid Range: Minimum value of 0.  
Required: No

 ** branchesMissed **   <a name="CodeBuild-Type-CodeCoverage-branchesMissed"></a>
The number of conditional branches that are not covered by your tests.  
Type: Integer  
Valid Range: Minimum value of 0.  
Required: No

 ** expired **   <a name="CodeBuild-Type-CodeCoverage-expired"></a>
The date and time that the tests were run.  
Type: Timestamp  
Required: No

 ** filePath **   <a name="CodeBuild-Type-CodeCoverage-filePath"></a>
The path of the test report file.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: No

 ** id **   <a name="CodeBuild-Type-CodeCoverage-id"></a>
The identifier of the code coverage report.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: No

 ** lineCoveragePercentage **   <a name="CodeBuild-Type-CodeCoverage-lineCoveragePercentage"></a>
The percentage of lines that are covered by your tests.  
Type: Double  
Valid Range: Minimum value of 0. Maximum value of 100.  
Required: No

 ** linesCovered **   <a name="CodeBuild-Type-CodeCoverage-linesCovered"></a>
The number of lines that are covered by your tests.  
Type: Integer  
Valid Range: Minimum value of 0.  
Required: No

 ** linesMissed **   <a name="CodeBuild-Type-CodeCoverage-linesMissed"></a>
The number of lines that are not covered by your tests.  
Type: Integer  
Valid Range: Minimum value of 0.  
Required: No

 ** reportARN **   <a name="CodeBuild-Type-CodeCoverage-reportARN"></a>
The ARN of the report.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: No

## See Also
<a name="API_CodeCoverage_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/codebuild-2016-10-06/CodeCoverage) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/codebuild-2016-10-06/CodeCoverage) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/codebuild-2016-10-06/CodeCoverage) 