• Home
  • Raw
  • Download

Lines Matching refs:t

57 func checkPropertySetFixture(t *testing.T, val interface{}, hasTags bool) {
59 android.AssertDeepEquals(t, "wrong x value", "taxi", set.getValue("x"))
60 android.AssertDeepEquals(t, "wrong y value", 1729, set.getValue("y"))
63 android.AssertDeepEquals(t, "wrong sub.x value", "taxi", subset.getValue("x"))
64 android.AssertDeepEquals(t, "wrong sub.y value", 1729, subset.getValue("y"))
67 android.AssertDeepEquals(t, "wrong y tag", "tag_y", set.getTag("y"))
68 android.AssertDeepEquals(t, "wrong sub.x tag", "tag_x", subset.getTag("x"))
70 android.AssertDeepEquals(t, "wrong y tag", nil, set.getTag("y"))
71 android.AssertDeepEquals(t, "wrong sub.x tag", nil, subset.getTag("x"))
75 func TestAddPropertySimple(t *testing.T) {
85 android.AssertDeepEquals(t, "wrong value", val, set.getValue(name))
87 …android.AssertPanicMessageContains(t, "adding x again should panic", `Property "x" already exists …
89 …android.AssertPanicMessageContains(t, "adding arr again should panic", `Property "arr" already exi…
93 func TestAddPropertySubset(t *testing.T) {
99 t.Run("add new subset", func(t *testing.T) {
101 t.Run(name, func(t *testing.T) {
104 checkPropertySetFixture(t, set, true)
105 checkPropertySetFixture(t, set.getValue("new"), name == "property set")
110 t.Run("merge existing subset", func(t *testing.T) {
112 t.Run(name, func(t *testing.T) {
119 android.AssertDeepEquals(t, "wrong flag value", false, merged.getValue("flag"))
120 checkPropertySetFixture(t, merged, name == "property set")
125 t.Run("add conflicting subset", func(t *testing.T) {
127 …android.AssertPanicMessageContains(t, "adding x again should panic", `Property "x" already exists …
131 t.Run("add non-pointer struct", func(t *testing.T) {
134 …android.AssertPanicMessageContains(t, "adding a non-pointer struct should panic", "Value is a stru…
139 func TestAddPropertySetNew(t *testing.T) {
143 …android.AssertDeepEquals(t, "wrong sub.new value", "d^^b", set.getValue("sub").(*bpPropertySet).ge…
146 func TestAddPropertySetExisting(t *testing.T) {
150 …android.AssertDeepEquals(t, "wrong sub.new value", "d^^b", set.getValue("sub").(*bpPropertySet).ge…
157 func (t removeFredTransformation) transformProperty(name string, value interface{}, tag android.BpP…
164 func (t removeFredTransformation) transformPropertySetBeforeContents(name string, propertySet *bpPr…
171 func (t removeFredTransformation) transformPropertySetAfterContents(name string, propertySet *bpPro…
178 func TestTransformRemoveProperty(t *testing.T) {
187 …android.AssertTrimmedStringEquals(t, "removing property failed", "name: \"name\",\n", contents.con…
190 func TestTransformRemovePropertySet(t *testing.T) {
199 …android.AssertTrimmedStringEquals(t, "removing property set failed", "name: \"name\",\n", contents…