Encapsulate properties to be optimized in a container
This allows additional metadata to be associated with a set of properties that will be used in a follow up change to filter properties that are ignored in some variants (e.g. host variants). Bug: 155628860 Test: m nothing Change-Id: Ie83c1ffbb71fd5d7a08d350571dad3e3209b1431
This commit is contained in:
@@ -242,9 +242,13 @@ type testPropertiesStruct struct {
|
||||
EmbeddedPropertiesStruct
|
||||
}
|
||||
|
||||
func (p *testPropertiesStruct) optimizableProperties() interface{} {
|
||||
return p
|
||||
}
|
||||
|
||||
func TestCommonValueOptimization(t *testing.T) {
|
||||
common := &testPropertiesStruct{}
|
||||
structs := []*testPropertiesStruct{
|
||||
structs := []propertiesContainer{
|
||||
&testPropertiesStruct{
|
||||
private: "common",
|
||||
Public_Kept: "common",
|
||||
|
Reference in New Issue
Block a user