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;
}
Aggregations