aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml
diff options
context:
space:
mode:
authorIgor Vashyst <ivashyst@gmail.com>2017-12-30 23:13:28 +0200
committerBrad Fitzpatrick <bradfitz@golang.org>2017-12-31 02:09:26 +0000
commit38c561cb2caa8019e44059e2be71c909ceef30a6 (patch)
tree8d659f441a36b247db4e311b561d71762c7e9c89 /src/encoding/xml
parent0770aaca35184b105af622d1c4b4dd95a8e338a8 (diff)
downloadgo-38c561cb2caa8019e44059e2be71c909ceef30a6.tar.gz
go-38c561cb2caa8019e44059e2be71c909ceef30a6.zip
encoding/xml: remove duplicate test of element presence
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>
Diffstat (limited to 'src/encoding/xml')
-rw-r--r--src/encoding/xml/marshal_test.go10
1 files changed, 0 insertions, 10 deletions
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: `<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{},