Lines Matching refs:set
26 set := newPropertySet()
27 set.AddProperty("x", "taxi")
28 set.AddPropertyWithTag("y", 1729, "tag_y")
29 subset := set.AddPropertySet("sub")
32 return set
58 set := val.(*bpPropertySet)
59 android.AssertDeepEquals(t, "wrong x value", "taxi", set.getValue("x"))
60 android.AssertDeepEquals(t, "wrong y value", 1729, set.getValue("y"))
62 subset := set.getValue("sub").(*bpPropertySet)
67 android.AssertDeepEquals(t, "wrong y tag", "tag_y", set.getTag("y"))
70 android.AssertDeepEquals(t, "wrong y tag", nil, set.getTag("y"))
76 set := newPropertySet()
84 set.AddProperty(name, val)
85 android.AssertDeepEquals(t, "wrong value", val, set.getValue(name))
87 …nicMessageContains(t, "adding x again should panic", `Property "x" already exists in property set`,
88 func() { set.AddProperty("x", "taxi") })
89 …essageContains(t, "adding arr again should panic", `Property "arr" already exists in property set`,
90 func() { set.AddProperty("arr", []string{"d"}) })
102 set := propertySetFixture().(*bpPropertySet)
103 set.AddProperty("new", getFixture())
104 checkPropertySetFixture(t, set, true)
105 checkPropertySetFixture(t, set.getValue("new"), name == "property set")
113 set := newPropertySet()
114 subset := set.AddPropertySet("sub")
117 set.AddProperty("sub", getFixture())
118 merged := set.getValue("sub").(*bpPropertySet)
126 set := propertySetFixture().(*bpPropertySet)
127 …nicMessageContains(t, "adding x again should panic", `Property "x" already exists in property set`,
128 func() { set.AddProperty("x", propertySetFixture()) })
132 set := propertySetFixture().(*bpPropertySet)
135 func() { set.AddProperty("new", *str) })
140 set := newPropertySet()
141 subset := set.AddPropertySet("sub")
143 …android.AssertDeepEquals(t, "wrong sub.new value", "d^^b", set.getValue("sub").(*bpPropertySet).ge…
147 set := propertySetFixture().(*bpPropertySet)
148 subset := set.AddPropertySet("sub")
150 …android.AssertDeepEquals(t, "wrong sub.new value", "d^^b", set.getValue("sub").(*bpPropertySet).ge…
179 set := newPropertySet()
180 set.AddProperty("name", "name")
181 set.AddProperty("fred", "12")
183 set.transformContents(removeFredTransformation{})
186 outputPropertySet(contents, set)
191 set := newPropertySet()
192 set.AddProperty("name", "name")
193 set.AddPropertySet("fred")
195 set.transformContents(removeFredTransformation{})
198 outputPropertySet(contents, set)