From f34f6d853876b2a8e8e1b4d04e0b0e07dd007a04 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Thu, 30 Apr 2020 15:48:31 +0100 Subject: 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 --- sdk/sdk_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sdk/sdk_test.go') diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go index fde92307f..2f125e2d9 100644 --- a/sdk/sdk_test.go +++ b/sdk/sdk_test.go @@ -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", -- cgit v1.2.3-59-g8ed1b