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:
Paul Duffin
2020-04-30 15:48:31 +01:00
parent e051d0d324
commit f34f6d8538
2 changed files with 46 additions and 21 deletions

View File

@@ -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",