From: Igor Vashyst Date: Sat, 30 Dec 2017 21:13:28 +0000 (+0200) Subject: encoding/xml: remove duplicate test of element presence X-Git-Tag: go1.10beta2~78 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=38c561cb2caa8019e44059e2be71c909ceef30a6;p=gostls13.git encoding/xml: remove duplicate test of element presence Change-Id: If0d9ff107fc6bbdf0231cd48abc23a44816bfe77 Reviewed-on: https://go-review.googlesource.com/85755 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 5c79a48e7a..a0ccf44028 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -583,16 +583,6 @@ var marshalTests = []struct { ExpectXML: ``, }, - // A pointer to struct{} may be used to test for an element's presence. - { - Value: &PresenceTest{new(struct{})}, - ExpectXML: ``, - }, - { - Value: &PresenceTest{}, - ExpectXML: ``, - }, - // A []byte field is only nil if the element was not found. { Value: &Data{},