use of com.google.devtools.build.lib.packages.RawAttributeMapper in project bazel by bazelbuild.
the class RawAttributeMapperTest method testGetConfigurabilityKeys.
@Test
public void testGetConfigurabilityKeys() throws Exception {
RawAttributeMapper rawMapper = RawAttributeMapper.of(setupGenRule());
assertThat(rawMapper.getConfigurabilityKeys("srcs", BuildType.LABEL_LIST)).containsExactlyElementsIn(ImmutableSet.of(Label.parseAbsolute("//conditions:a"), Label.parseAbsolute("//conditions:b"), Label.parseAbsolute("//conditions:default")));
assertThat(rawMapper.getConfigurabilityKeys("data", BuildType.LABEL_LIST)).isEmpty();
}
Aggregations