use of com.facebook.buck.versions.FixedTargetNodeTranslator in project buck by facebook.
the class NeededCoverageSpecTest method untranslatedTargets.
@Test
public void untranslatedTargets() {
BuildTarget target = BuildTargetFactory.newInstance("//:rule");
TargetNodeTranslator translator = new FixedTargetNodeTranslator(ImmutableMap.of());
NeededCoverageSpec spec = NeededCoverageSpec.of(1.0f, target, Optional.empty());
assertThat(translator.translate(CELL_PATH_RESOLVER, PATTERN, spec), Matchers.equalTo(Optional.empty()));
}
Aggregations