Lines Matching full:item2
1102 // receiving the value for item2.
1115 item2 := InterfaceItem{}
1116 err = NewDecoder(b).Decode(&item2)
1120 if item2.I != item1.I {
1123 if item2.Sq1 == nil || item2.Sq1.Square() != iVal.Square() {
1126 if item2.Sq2 == nil || item2.Sq2.Square() != fVal.Square() {
1129 if item2.Sq3 == nil || item2.Sq3.Square() != vVal.Square() {
1132 if item2.F != item1.F {
1136 if len(item1.Sq) != len(item2.Sq) {
1137 t.Fatalf("[]Squarer length wrong: got %d; expected %d", len(item2.Sq), len(item1.Sq))
1140 v2 := item2.Sq[i]
1178 item2 := &BasicInterfaceItem{}
1179 err = NewDecoder(b).Decode(&item2)
1183 if !reflect.DeepEqual(item1, item2) {
1184 t.Errorf("encode expected %v got %v", item1, item2)
1187 if v, ok := item2.Bool.(bool); !ok || !v {
1190 if v, ok := item2.String.(string); !ok || v != item1.String.(string) {
1219 item2 := &PtrInterfaceItem{}
1220 err = NewDecoder(b).Decode(&item2)
1225 if v, ok := item2.Str1.(string); !ok || v != str1 {
1228 if v, ok := item2.Str2.(String); !ok || v != str2 {
1237 // receiving the value for item2.
1250 item2 := NoInterfaceItem{}
1251 err = NewDecoder(b).Decode(&item2)
1255 if item2.I != item1.I {
1258 if item2.F != item2.F {