/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains a summary of a code coverage report. 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.See Also:
AWS
* API Reference
The percentage of lines that are covered by your tests.
*/ inline double GetLineCoveragePercentage() const{ return m_lineCoveragePercentage; } /** *The percentage of lines that are covered by your tests.
*/ inline bool LineCoveragePercentageHasBeenSet() const { return m_lineCoveragePercentageHasBeenSet; } /** *The percentage of lines that are covered by your tests.
*/ inline void SetLineCoveragePercentage(double value) { m_lineCoveragePercentageHasBeenSet = true; m_lineCoveragePercentage = value; } /** *The percentage of lines that are covered by your tests.
*/ inline CodeCoverageReportSummary& WithLineCoveragePercentage(double value) { SetLineCoveragePercentage(value); return *this;} /** *The number of lines that are covered by your tests.
*/ inline int GetLinesCovered() const{ return m_linesCovered; } /** *The number of lines that are covered by your tests.
*/ inline bool LinesCoveredHasBeenSet() const { return m_linesCoveredHasBeenSet; } /** *The number of lines that are covered by your tests.
*/ inline void SetLinesCovered(int value) { m_linesCoveredHasBeenSet = true; m_linesCovered = value; } /** *The number of lines that are covered by your tests.
*/ inline CodeCoverageReportSummary& WithLinesCovered(int value) { SetLinesCovered(value); return *this;} /** *The number of lines that are not covered by your tests.
*/ inline int GetLinesMissed() const{ return m_linesMissed; } /** *The number of lines that are not covered by your tests.
*/ inline bool LinesMissedHasBeenSet() const { return m_linesMissedHasBeenSet; } /** *The number of lines that are not covered by your tests.
*/ inline void SetLinesMissed(int value) { m_linesMissedHasBeenSet = true; m_linesMissed = value; } /** *The number of lines that are not covered by your tests.
*/ inline CodeCoverageReportSummary& WithLinesMissed(int value) { SetLinesMissed(value); return *this;} /** *The percentage of branches that are covered by your tests.
*/ inline double GetBranchCoveragePercentage() const{ return m_branchCoveragePercentage; } /** *The percentage of branches that are covered by your tests.
*/ inline bool BranchCoveragePercentageHasBeenSet() const { return m_branchCoveragePercentageHasBeenSet; } /** *The percentage of branches that are covered by your tests.
*/ inline void SetBranchCoveragePercentage(double value) { m_branchCoveragePercentageHasBeenSet = true; m_branchCoveragePercentage = value; } /** *The percentage of branches that are covered by your tests.
*/ inline CodeCoverageReportSummary& WithBranchCoveragePercentage(double value) { SetBranchCoveragePercentage(value); return *this;} /** *The number of conditional branches that are covered by your tests.
*/ inline int GetBranchesCovered() const{ return m_branchesCovered; } /** *The number of conditional branches that are covered by your tests.
*/ inline bool BranchesCoveredHasBeenSet() const { return m_branchesCoveredHasBeenSet; } /** *The number of conditional branches that are covered by your tests.
*/ inline void SetBranchesCovered(int value) { m_branchesCoveredHasBeenSet = true; m_branchesCovered = value; } /** *The number of conditional branches that are covered by your tests.
*/ inline CodeCoverageReportSummary& WithBranchesCovered(int value) { SetBranchesCovered(value); return *this;} /** *The number of conditional branches that are not covered by your tests.
*/ inline int GetBranchesMissed() const{ return m_branchesMissed; } /** *The number of conditional branches that are not covered by your tests.
*/ inline bool BranchesMissedHasBeenSet() const { return m_branchesMissedHasBeenSet; } /** *The number of conditional branches that are not covered by your tests.
*/ inline void SetBranchesMissed(int value) { m_branchesMissedHasBeenSet = true; m_branchesMissed = value; } /** *The number of conditional branches that are not covered by your tests.
*/ inline CodeCoverageReportSummary& WithBranchesMissed(int value) { SetBranchesMissed(value); return *this;} private: double m_lineCoveragePercentage; bool m_lineCoveragePercentageHasBeenSet = false; int m_linesCovered; bool m_linesCoveredHasBeenSet = false; int m_linesMissed; bool m_linesMissedHasBeenSet = false; double m_branchCoveragePercentage; bool m_branchCoveragePercentageHasBeenSet = false; int m_branchesCovered; bool m_branchesCoveredHasBeenSet = false; int m_branchesMissed; bool m_branchesMissedHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws