cosmetic changes

base.module = module is redundant in InitDefaultsModule() becase of the preceding initAndroidModuleBase()
minor reformat of initArchModel()

Test: m nothing
Bug: n/a

Change-Id: I16d5a400a33098a81ffbf6c81eba5b13db6debf1
This commit is contained in:
Usta
2021-12-06 15:17:23 -05:00
parent d7c3fc0ae0
commit eabf0f36f3
4 changed files with 19 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ var packageTests = []struct {
}{
// Package default_visibility handling is tested in visibility_test.go
{
name: "package must not accept visibility and name properties",
name: "package must not accept visibility, name or licenses properties",
fs: map[string][]byte{
"top/Android.bp": []byte(`
package {
@@ -48,8 +48,7 @@ var packageTests = []struct {
default_visibility: ["//visibility:private"],
default_applicable_licenses: ["license"],
}
package {
package {
}`),
},
expectedErrors: []string{