go/src/encoding/xml
Sam Whited a05934639b encoding/xml: fix token decoder on early EOF
The documentation for TokenReader suggests that implementations of the
interface may return a token and io.EOF together, indicating that it is
the last token in the stream. This is similar to io.Reader. However, if
you wrap such a TokenReader in a Decoder it complained about the EOF.
A test was added to ensure this behavior on Decoder's.

Change-Id: I9083c91d9626180d3bcf5c069a017050f3c7c4a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/130556
Run-TryBot: Sam Whited <sam@samwhited.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-10-30 19:47:52 +00:00
..
atom_test.go encoding/xml: improve package based on the suggestions from metalinter 2017-08-24 00:55:59 +00:00
example_marshaling_test.go encoding/xml, encoding/json: docs and examples using custom marshalers 2018-12-12 14:18:06 +00:00
example_test.go
example_text_marshaling_test.go encoding/xml, encoding/json: docs and examples using custom marshalers 2018-12-12 14:18:06 +00:00
marshal.go encoding/xml: rename fInnerXml to fInnerXML 2019-08-28 10:21:40 +00:00
marshal_test.go std: remove unused bits of code all over the place 2019-09-02 12:57:37 +00:00
read.go encoding/xml: rename fInnerXml to fInnerXML 2019-08-28 10:21:40 +00:00
read_test.go all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
typeinfo.go encoding/xml: rename fInnerXml to fInnerXML 2019-08-28 10:21:40 +00:00
xml.go encoding/xml: fix token decoder on early EOF 2019-10-30 19:47:52 +00:00
xml_test.go encoding/xml: fix token decoder on early EOF 2019-10-30 19:47:52 +00:00