Search in sources :

Example 1 with CoverageReportActionFactory

use of com.google.devtools.build.lib.rules.test.CoverageReportActionFactory in project bazel by bazelbuild.

the class BlazeRuntime method getCoverageReportActionFactory.

@Nullable
public CoverageReportActionFactory getCoverageReportActionFactory(OptionsClassProvider commandOptions) {
    CoverageReportActionFactory firstFactory = null;
    for (BlazeModule module : blazeModules) {
        CoverageReportActionFactory factory = module.getCoverageReportFactory(commandOptions);
        if (factory != null) {
            Preconditions.checkState(firstFactory == null, "only one Blaze Module can have a Coverage Report Factory");
            firstFactory = factory;
        }
    }
    return firstFactory;
}
Also used : CoverageReportActionFactory(com.google.devtools.build.lib.rules.test.CoverageReportActionFactory) Nullable(javax.annotation.Nullable)

Aggregations

CoverageReportActionFactory (com.google.devtools.build.lib.rules.test.CoverageReportActionFactory)1 Nullable (javax.annotation.Nullable)1