@@ -1793,7 +1793,7 @@ func testEmbeddedStruct(t *testing.T) {
17931793 skipEq : true ,
17941794 vc : func (p Parent ) error {
17951795 // Tagged embedded struct should not be promoted
1796- tu .Equal (t , p .Embedded .Field , 99 )
1796+ tu .Equal (t , p .Embedded .Field , 99 ) //lint:ignore QF1008
17971797 tu .Equal (t , p .Regular , "value" )
17981798 msgDecoded = p
17991799 return nil
@@ -1806,7 +1806,7 @@ func testEmbeddedStruct(t *testing.T) {
18061806 var jsonDecoded Parent
18071807 _ = json .Unmarshal (jsonBytes , & jsonDecoded )
18081808
1809- if msgDecoded .Embedded .Field != jsonDecoded .Embedded .Field ||
1809+ if msgDecoded .Embedded .Field != jsonDecoded .Embedded .Field || //lint:ignore QF1008
18101810 msgDecoded .Regular != jsonDecoded .Regular {
18111811 t .Errorf ("msgpack and json results differ:\n msgpack: %+v\n json: %+v" ,
18121812 msgDecoded , jsonDecoded )
@@ -2230,7 +2230,7 @@ func testEmbeddedStruct(t *testing.T) {
22302230 v : original ,
22312231 skipEq : true ,
22322232 vc : func (p Derived ) error {
2233- tu .Equal (t , p .Base .Value , 123 )
2233+ tu .Equal (t , p .Base .Value , 123 ) //lint:ignore QF1008
22342234 tu .Equal (t , p .Extra , "extra" )
22352235 return nil
22362236 },
@@ -2268,7 +2268,7 @@ func testEmbeddedStruct(t *testing.T) {
22682268 v : original ,
22692269 skipEq : true ,
22702270 vc : func (p Outer ) error {
2271- tu .Equal (t , p .Inner .Value , 456 )
2271+ tu .Equal (t , p .Inner .Value , 456 ) //lint:ignore QF1008
22722272 tu .Equal (t , p .Other , "test" )
22732273 msgDecoded = p
22742274 return nil
@@ -2281,7 +2281,7 @@ func testEmbeddedStruct(t *testing.T) {
22812281 var jsonDecoded Outer
22822282 _ = json .Unmarshal (jsonBytes , & jsonDecoded )
22832283
2284- if msgDecoded .Inner .Value != jsonDecoded .Inner .Value ||
2284+ if msgDecoded .Inner .Value != jsonDecoded .Inner .Value || //lint:ignore QF1008
22852285 msgDecoded .Other != jsonDecoded .Other {
22862286 t .Errorf ("msgpack and json results differ:\n msgpack: %+v\n json: %+v" ,
22872287 msgDecoded , jsonDecoded )
0 commit comments