public abstract class NeededCoverageSpec extends Object implements TargetTranslatable<NeededCoverageSpec>
Constructor and Description |
---|
NeededCoverageSpec() |
Modifier and Type | Method and Description |
---|---|
abstract BuildTarget |
getBuildTarget() |
abstract int |
getNeededCoverageRatioPercentage()
Gets the coverage ratio that is required for a test
|
abstract Optional<String> |
getPathName() |
static NeededCoverageSpec |
of(int neededCoverageRatioPercentage,
BuildTarget buildTarget,
Optional<String> pathName) |
Optional<NeededCoverageSpec> |
translateTargets(CellNameResolver cellPathResolver,
BaseName targetBaseName,
TargetNodeTranslator translator) |
NeededCoverageSpec |
withBuildTarget(BuildTarget target) |
public abstract int getNeededCoverageRatioPercentage()
public abstract BuildTarget getBuildTarget()
public static NeededCoverageSpec of(int neededCoverageRatioPercentage, BuildTarget buildTarget, Optional<String> pathName)
public Optional<NeededCoverageSpec> translateTargets(CellNameResolver cellPathResolver, BaseName targetBaseName, TargetNodeTranslator translator)
translateTargets
in interface TargetTranslatable<NeededCoverageSpec>
public NeededCoverageSpec withBuildTarget(BuildTarget target)