use of com.google.devtools.build.lib.packages.Package in project bazel by bazelbuild.
the class AbstractAttributeMapperTest method testPackageDefaultProperties.
@Test
public void testPackageDefaultProperties() throws Exception {
rule = scratchRule("a", "myrule", "cc_binary(name = 'myrule',", " srcs = ['a', 'b', 'c'])");
Package pkg = rule.getPackage();
assertEquals(pkg.getDefaultHdrsCheck(), mapper.getPackageDefaultHdrsCheck());
assertEquals(pkg.getDefaultTestOnly(), mapper.getPackageDefaultTestOnly());
assertEquals(pkg.getDefaultDeprecation(), mapper.getPackageDefaultDeprecation());
}
Aggregations