Enum Class Baseline
- All Implemented Interfaces:
Serializable
,Comparable<Baseline>
,Constable
The baseline for the code coverage computation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndirect changes of the overall code coverage that are not part of the changed code.Coverage of the modified files (e.g., within the files that have been touched in a pull or merge request) will focus on new or modified code only.Difference between the project coverage and the modified file coverage of the current build.Coverage of the modified lines (e.g., within the modified lines of a pull or merge request) will focus on new or modified code only.Difference between the project coverage and the modified lines coverage of the current build.Coverage of the whole project.Difference between the project coverages of the current build and the reference build. -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayColors
(double value, ColorProvider colorProvider) Returns the display colors to use render a value of this baseline.getTitle()
getUrl()
boolean
isDelta()
static Baseline
Returns the enum constant of this class with the specified name.static Baseline[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROJECT
Coverage of the whole project. This is an absolute value that might not change much from build to build. -
PROJECT_DELTA
Difference between the project coverages of the current build and the reference build. Teams can use this delta value to ensure that the coverage will not decrease. -
MODIFIED_LINES
Coverage of the modified lines (e.g., within the modified lines of a pull or merge request) will focus on new or modified code only. -
MODIFIED_LINES_DELTA
Difference between the project coverage and the modified lines coverage of the current build. Teams can use this delta value to ensure that the coverage of pull requests is better than the whole project coverage. -
MODIFIED_FILES
Coverage of the modified files (e.g., within the files that have been touched in a pull or merge request) will focus on new or modified code only. -
MODIFIED_FILES_DELTA
Difference between the project coverage and the modified file coverage of the current build. Teams can use this delta value to ensure that the coverage of pull requests is better than the whole project coverage. -
INDIRECT
Indirect changes of the overall code coverage that are not part of the changed code. These changes might occur if new tests are added without touching the underlying code under test.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getTitle
-
getUrl
-
getDisplayColors
Returns the display colors to use render a value of this baseline.- Parameters:
value
- the value to rendercolorProvider
- the color provider to use- Returns:
- the display colors to use
-
isDelta
public boolean isDelta()
-