Lines Matching refs:item2
1100 // receiving the value for item2.
1113 item2 := InterfaceItem{}
1114 err = NewDecoder(b).Decode(&item2)
1118 if item2.I != item1.I {
1121 if item2.Sq1 == nil || item2.Sq1.Square() != iVal.Square() {
1124 if item2.Sq2 == nil || item2.Sq2.Square() != fVal.Square() {
1127 if item2.Sq3 == nil || item2.Sq3.Square() != vVal.Square() {
1130 if item2.F != item1.F {
1134 if len(item1.Sq) != len(item2.Sq) {
1135 t.Fatalf("[]Squarer length wrong: got %d; expected %d", len(item2.Sq), len(item1.Sq))
1138 v2 := item2.Sq[i]
1176 item2 := &BasicInterfaceItem{}
1177 err = NewDecoder(b).Decode(&item2)
1181 if !reflect.DeepEqual(item1, item2) {
1182 t.Errorf("encode expected %v got %v", item1, item2)
1185 if v, ok := item2.Bool.(bool); !ok || !v {
1188 if v, ok := item2.String.(string); !ok || v != item1.String.(string) {
1217 item2 := &PtrInterfaceItem{}
1218 err = NewDecoder(b).Decode(&item2)
1223 if v, ok := item2.Str1.(string); !ok || v != str1 {
1226 if v, ok := item2.Str2.(String); !ok || v != str2 {
1235 // receiving the value for item2.
1248 item2 := NoInterfaceItem{}
1249 err = NewDecoder(b).Decode(&item2)
1253 if item2.I != item1.I {
1256 if item2.F != item1.F {