]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/xml: remove duplicate test of element presence
authorIgor Vashyst <ivashyst@gmail.com>
Sat, 30 Dec 2017 21:13:28 +0000 (23:13 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 31 Dec 2017 02:09:26 +0000 (02:09 +0000)
Change-Id: If0d9ff107fc6bbdf0231cd48abc23a44816bfe77
Reviewed-on: https://go-review.googlesource.com/85755
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/encoding/xml/marshal_test.go

index 5c79a48e7adb19b152c1e097aaa3a1d05e4a7624..a0ccf44028b19bda077599fef69ec310fa6659d0 100644 (file)
@@ -583,16 +583,6 @@ var marshalTests = []struct {
                ExpectXML: `<PresenceTest></PresenceTest>`,
        },
 
-       // A pointer to struct{} may be used to test for an element's presence.
-       {
-               Value:     &PresenceTest{new(struct{})},
-               ExpectXML: `<PresenceTest><Exists></Exists></PresenceTest>`,
-       },
-       {
-               Value:     &PresenceTest{},
-               ExpectXML: `<PresenceTest></PresenceTest>`,
-       },
-
        // A []byte field is only nil if the element was not found.
        {
                Value:         &Data{},