/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the codebuild-2016-10-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CodeBuild.Model
{
///
/// 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.
///
///
public partial class CodeCoverageReportSummary
{
private double? _branchCoveragePercentage;
private int? _branchesCovered;
private int? _branchesMissed;
private double? _lineCoveragePercentage;
private int? _linesCovered;
private int? _linesMissed;
///
/// Gets and sets the property BranchCoveragePercentage.
///
/// The percentage of branches that are covered by your tests.
///
///
[AWSProperty(Min=0, Max=100)]
public double BranchCoveragePercentage
{
get { return this._branchCoveragePercentage.GetValueOrDefault(); }
set { this._branchCoveragePercentage = value; }
}
// Check to see if BranchCoveragePercentage property is set
internal bool IsSetBranchCoveragePercentage()
{
return this._branchCoveragePercentage.HasValue;
}
///
/// Gets and sets the property BranchesCovered.
///
/// The number of conditional branches that are covered by your tests.
///
///
[AWSProperty(Min=0)]
public int BranchesCovered
{
get { return this._branchesCovered.GetValueOrDefault(); }
set { this._branchesCovered = value; }
}
// Check to see if BranchesCovered property is set
internal bool IsSetBranchesCovered()
{
return this._branchesCovered.HasValue;
}
///
/// Gets and sets the property BranchesMissed.
///
/// The number of conditional branches that are not covered by your tests.
///
///
[AWSProperty(Min=0)]
public int BranchesMissed
{
get { return this._branchesMissed.GetValueOrDefault(); }
set { this._branchesMissed = value; }
}
// Check to see if BranchesMissed property is set
internal bool IsSetBranchesMissed()
{
return this._branchesMissed.HasValue;
}
///
/// Gets and sets the property LineCoveragePercentage.
///
/// The percentage of lines that are covered by your tests.
///
///
[AWSProperty(Min=0, Max=100)]
public double LineCoveragePercentage
{
get { return this._lineCoveragePercentage.GetValueOrDefault(); }
set { this._lineCoveragePercentage = value; }
}
// Check to see if LineCoveragePercentage property is set
internal bool IsSetLineCoveragePercentage()
{
return this._lineCoveragePercentage.HasValue;
}
///
/// Gets and sets the property LinesCovered.
///
/// The number of lines that are covered by your tests.
///
///
[AWSProperty(Min=0)]
public int LinesCovered
{
get { return this._linesCovered.GetValueOrDefault(); }
set { this._linesCovered = value; }
}
// Check to see if LinesCovered property is set
internal bool IsSetLinesCovered()
{
return this._linesCovered.HasValue;
}
///
/// Gets and sets the property LinesMissed.
///
/// The number of lines that are not covered by your tests.
///
///
[AWSProperty(Min=0)]
public int LinesMissed
{
get { return this._linesMissed.GetValueOrDefault(); }
set { this._linesMissed = value; }
}
// Check to see if LinesMissed property is set
internal bool IsSetLinesMissed()
{
return this._linesMissed.HasValue;
}
}
}