From 2a431155e94436c41773bec48f845ad68f27154f Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Tue, 15 Sep 2020 09:35:16 -0400 Subject: [PATCH 01/32] new test TestMarshalIndentErrors --- src/encoding/xml/marshal_test.go | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 31309ef2ca8c5a..072ad0f3ec9974 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -1694,6 +1694,7 @@ type BadAttr struct { Name map[string]string `xml:"name,attr"` } +// used by both TestMarshalErrors and TestMarshalIndentErrors var marshalErrorTests = []struct { Value interface{} Err string @@ -1829,6 +1830,24 @@ func TestMarshalIndent(t *testing.T) { } } +func TestMarshalIndentErrors(t *testing.T) { + for idx, test := range marshalErrorTests { + data, err := MarshalIndent(test.Value, "", "") + if err == nil { + t.Errorf("#%d: marshalIndent(%#v) = [success] %q, want error %v", idx, test.Value, data, test.Err) + continue + } + if err.Error() != test.Err { + t.Errorf("#%d: marshalIndent(%#v) = [error] %v, want %v", idx, test.Value, err, test.Err) + } + if test.Kind != reflect.Invalid { + if kind := err.(*UnsupportedTypeError).Type.Kind(); kind != test.Kind { + t.Errorf("#%d: marshalIndent(%#v) = [error kind] %s, want %s", idx, test.Value, kind, test.Kind) + } + } + } +} + type limitedBytesWriter struct { w io.Writer remain int // until writes fail @@ -2449,7 +2468,6 @@ func TestIssue16158(t *testing.T) { } // Issue 20953. Crash on invalid XMLName attribute. - type InvalidXMLName struct { XMLName Name `xml:"error"` Type struct { From 78620dba158e6d7a5a0376b94fdf3fff2b9d8584 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Tue, 15 Sep 2020 10:47:47 -0400 Subject: [PATCH 02/32] new struct and test --- src/encoding/xml/marshal_test.go | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 072ad0f3ec9974..d33e15128dda48 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -320,10 +320,14 @@ type MyMarshalerTest struct { var _ Marshaler = (*MyMarshalerTest)(nil) func (m *MyMarshalerTest) MarshalXML(e *Encoder, start StartElement) error { - e.EncodeToken(start) - e.EncodeToken(CharData([]byte("hello world"))) - e.EncodeToken(EndElement{start.Name}) - return nil + return e.EncodeElement("hello world", start) +} + +type MyMarshalerTestError struct { +} + +func (m *MyMarshalerTestError) MarshalXML(e *Encoder, _ StartElement) error { + return e.EncodeElement("hello world", StartElement{Name{"", ""}, nil}) } type MyMarshalerAttrTest struct { @@ -1243,6 +1247,11 @@ var marshalTests = []struct { ExpectXML: `hello world`, Value: &MyMarshalerTest{}, }, + { + ExpectXML: `hello world`, + Value: &MyMarshalerTestError{}, + MarshalError: "xml: EncodeElement of StartElement with missing name", + }, { ExpectXML: ``, Value: &MarshalerStruct{}, From 3ddbe5ee34a5fca2174ac0fb951d502d9f3a6f9b Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Tue, 15 Sep 2020 11:12:01 -0400 Subject: [PATCH 03/32] two new structs MyMarshalerTestErrorMissingName, MyMarshalerTestErrorNotClosed --- src/encoding/xml/marshal_test.go | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index d33e15128dda48..b5d94e45e3577b 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -323,13 +323,23 @@ func (m *MyMarshalerTest) MarshalXML(e *Encoder, start StartElement) error { return e.EncodeElement("hello world", start) } -type MyMarshalerTestError struct { +type MyMarshalerTestErrorMissingName struct { } -func (m *MyMarshalerTestError) MarshalXML(e *Encoder, _ StartElement) error { +func (m *MyMarshalerTestErrorMissingName) MarshalXML(e *Encoder, _ StartElement) error { return e.EncodeElement("hello world", StartElement{Name{"", ""}, nil}) } +type MyMarshalerTestErrorNotClosed struct { +} + +func (m *MyMarshalerTestErrorNotClosed) MarshalXML(e *Encoder, start StartElement) error { + e.EncodeToken(start) + e.EncodeToken(CharData([]byte("hello world"))) + //e.EncodeToken(EndElement{start.Name}) + return nil +} + type MyMarshalerAttrTest struct { } @@ -1249,9 +1259,14 @@ var marshalTests = []struct { }, { ExpectXML: `hello world`, - Value: &MyMarshalerTestError{}, + Value: &MyMarshalerTestErrorMissingName{}, MarshalError: "xml: EncodeElement of StartElement with missing name", }, + { + ExpectXML: `hello world`, + Value: &MyMarshalerTestErrorNotClosed{}, + MarshalError: "MarshalXML wrote invalid XML", + }, { ExpectXML: ``, Value: &MarshalerStruct{}, @@ -2048,6 +2063,12 @@ var encodeTokenTests = []struct { ProcInst{"", []byte("Instruction?>")}, }, err: "xml: EncodeToken of ProcInst with invalid Target", +}, { + desc: "proc instruction with endProcInst", + toks: []Token{ + ProcInst{"Target", []byte("Instruction?>")}, + }, + err: "xml: EncodeToken of ProcInst containing ?> marker", }, { desc: "directive", toks: []Token{ From 952047e08074695a9de98a25cf7d867e7b34d675 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Tue, 15 Sep 2020 12:28:50 -0400 Subject: [PATCH 04/32] cover (TagPathError)Error --- src/encoding/xml/read_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index 8c2e70fa22ee68..1cc9626769a741 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -332,7 +332,7 @@ var badPathTests = []struct { func TestUnmarshalBadPaths(t *testing.T) { for _, tt := range badPathTests { err := Unmarshal([]byte(pathTestString), tt.v) - if !reflect.DeepEqual(err, tt.e) { + if !strings.Contains(err.Error(), "conflicts with field") || !reflect.DeepEqual(err, tt.e) { t.Fatalf("Unmarshal with %#v didn't fail properly:\nhave %#v,\nwant %#v", tt.v, err, tt.e) } } From 90444c3092d39ffd07cddfc201f5f1a8f499820f Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Tue, 15 Sep 2020 14:02:57 -0400 Subject: [PATCH 05/32] trigger namespace without name in field --- src/encoding/xml/marshal_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index b5d94e45e3577b..37e126b4f5ca35 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -189,6 +189,10 @@ type NameInField struct { Foo Name `xml:"ns foo"` } +type NameInFieldError struct { + Foo Name `xml:"ns "` +} + type AttrTest struct { Int int `xml:",attr"` Named int `xml:"int,attr"` @@ -969,6 +973,11 @@ var marshalTests = []struct { ExpectXML: ``, UnmarshalOnly: true, }, + { + Value: &NameInFieldError{Name{Space: "ns", Local: "foo"}}, + ExpectXML: ``, + MarshalError: "xml: namespace without name in field", + }, // Marshaling zero xml.Name uses the tag or field name. { From d744d0305e6d19a9b0eddc9d548def438b2b4358 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Tue, 15 Sep 2020 16:12:49 -0400 Subject: [PATCH 06/32] new struct BadTag --- src/encoding/xml/marshal_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 37e126b4f5ca35..e8130e7ed7038c 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -977,6 +977,7 @@ var marshalTests = []struct { Value: &NameInFieldError{Name{Space: "ns", Local: "foo"}}, ExpectXML: ``, MarshalError: "xml: namespace without name in field", + UnmarshalError: "xml: namespace without name in field", }, // Marshaling zero xml.Name uses the tag or field name. @@ -1691,6 +1692,11 @@ func TestMarshal(t *testing.T) { if test.UnmarshalOnly { continue } + //if idx == 32 { + // fmt.Printf("\nidx: %v\ntest: %v\n", idx, test) + //} else{ + // continue + //} t.Run(fmt.Sprintf("%d", idx), func(t *testing.T) { data, err := Marshal(test.Value) @@ -1727,6 +1733,10 @@ type BadAttr struct { Name map[string]string `xml:"name,attr"` } +type BadTag struct { + Comment string `xml:",comment,omitempty"` +} + // used by both TestMarshalErrors and TestMarshalIndentErrors var marshalErrorTests = []struct { Value interface{} @@ -1764,6 +1774,10 @@ var marshalErrorTests = []struct { Value: BadAttr{map[string]string{"X": "Y"}}, Err: `xml: unsupported type: map[string]string`, }, + { + Value: BadTag{"some comment"}, + Err: `xml: invalid tag in field Comment of type xml.BadTag: ",comment,omitempty"`, + }, } var marshalIndentTests = []struct { From d1241c4053b7cbf45cc688d4180f287c8a21eea2 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Wed, 16 Sep 2020 10:22:05 -0400 Subject: [PATCH 07/32] add BadTagMultipleNodes struct --- src/encoding/xml/marshal_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index e8130e7ed7038c..dfa4080b72a556 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -1737,6 +1737,10 @@ type BadTag struct { Comment string `xml:",comment,omitempty"` } +type BadTagMultipleModes struct { + Comment string `xml:",attr,comment"` +} + // used by both TestMarshalErrors and TestMarshalIndentErrors var marshalErrorTests = []struct { Value interface{} @@ -1778,6 +1782,10 @@ var marshalErrorTests = []struct { Value: BadTag{"some comment"}, Err: `xml: invalid tag in field Comment of type xml.BadTag: ",comment,omitempty"`, }, + { + Value: BadTagMultipleModes{"some comment"}, + Err: `xml: invalid tag in field Comment of type xml.BadTagMultipleModes: ",attr,comment"`, + }, } var marshalIndentTests = []struct { From a0a6b24002539379e583c6547cef0417322cb0a6 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Wed, 16 Sep 2020 10:55:22 -0400 Subject: [PATCH 08/32] new struct BadTagTrailingTag --- src/encoding/xml/marshal_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index dfa4080b72a556..08b88c39fe771d 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -1741,6 +1741,10 @@ type BadTagMultipleModes struct { Comment string `xml:",attr,comment"` } +type BadTagTrailingTag struct { + Comment string `xml:"comment>"` +} + // used by both TestMarshalErrors and TestMarshalIndentErrors var marshalErrorTests = []struct { Value interface{} @@ -1786,6 +1790,10 @@ var marshalErrorTests = []struct { Value: BadTagMultipleModes{"some comment"}, Err: `xml: invalid tag in field Comment of type xml.BadTagMultipleModes: ",attr,comment"`, }, + { + Value: BadTagTrailingTag{"some comment"}, + Err: `xml: trailing '>' in field Comment of type xml.BadTagTrailingTag`, + }, } var marshalIndentTests = []struct { From bc09b36cb18f42161c623e7095358bba28f46d2c Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Wed, 16 Sep 2020 11:17:10 -0400 Subject: [PATCH 09/32] new struct ServiceErrorNameConflict --- src/encoding/xml/marshal_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 08b88c39fe771d..af6a99cfd0815f 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -133,6 +133,14 @@ type Service struct { Extra2 interface{} `xml:"host>extra2"` } +type ServiceErrorNameConflict struct { + XMLName struct{} `xml:"service"` + Domain *Domain `xml:"host>domain"` + Port *Port `xml:"host>portZZZ"` + Extra1 interface{} + Extra2 interface{} `xml:"host>extra2"` +} + var nilStruct *Ship type EmbedA struct { @@ -809,6 +817,11 @@ var marshalTests = []struct { ``, MarshalOnly: true, }, + { + Value: &ServiceErrorNameConflict{Port: &Port{Number: "80"}}, + ExpectXML: `80`, + MarshalError: `conflicts with name`, + }, { Value: &struct { XMLName struct{} `xml:"space top"` From 13f5833536ae170831a4c4c180a48aeccff63572 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Wed, 16 Sep 2020 12:36:27 -0400 Subject: [PATCH 10/32] new structs BadEmbed, BadInnerEmbed --- src/encoding/xml/marshal_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index af6a99cfd0815f..4f2c12f9a450c5 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -821,6 +821,7 @@ var marshalTests = []struct { Value: &ServiceErrorNameConflict{Port: &Port{Number: "80"}}, ExpectXML: `80`, MarshalError: `conflicts with name`, + UnmarshalError: `conflicts with name`, }, { Value: &struct { @@ -1758,6 +1759,14 @@ type BadTagTrailingTag struct { Comment string `xml:"comment>"` } +type BadEmbed struct { + BadInnerEmbed +} + +type BadInnerEmbed struct { + Field string `xml:"Field,attr,comment"` +} + // used by both TestMarshalErrors and TestMarshalIndentErrors var marshalErrorTests = []struct { Value interface{} @@ -1807,6 +1816,10 @@ var marshalErrorTests = []struct { Value: BadTagTrailingTag{"some comment"}, Err: `xml: trailing '>' in field Comment of type xml.BadTagTrailingTag`, }, + { + Value: BadEmbed{}, + Err: `xml: invalid tag in field Field of type xml.BadInnerEmbed: "Field,attr,comment"`, + }, } var marshalIndentTests = []struct { From 620e85fcb7d6e0deed9cd6f71cb27599fb3fb290 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Wed, 16 Sep 2020 14:09:14 -0400 Subject: [PATCH 11/32] new TestUnmarshalNonpointer --- src/encoding/xml/read_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index 1cc9626769a741..d2f76288e55e42 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -348,6 +348,18 @@ type TestThree struct { Attr string `xml:",attr"` } +func TestUnmarshalNonpointer(t *testing.T) { + var x TestThree + err := Unmarshal([]byte(withoutNameTypeData), x) + errText := "non-pointer passed to Unmarshal" + if err == nil { + t.Errorf("[success], want error %v", errText) + } + if err.Error() != errText { + t.Errorf("[error] %v, want %v", err, errText) + } +} + func TestUnmarshalWithoutNameType(t *testing.T) { var x TestThree if err := Unmarshal([]byte(withoutNameTypeData), &x); err != nil { From 4bf70b02261637c2ee8300b425a3a42977651c02 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Wed, 16 Sep 2020 16:00:36 -0400 Subject: [PATCH 12/32] new TestUnmarshalerError --- src/encoding/xml/read_test.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index d2f76288e55e42..ad3e76845b2344 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -5,6 +5,7 @@ package xml import ( + "errors" "io" "reflect" "strings" @@ -657,6 +658,8 @@ func (m *MyCharData) UnmarshalXML(d *Decoder, start StartElement) error { var _ Unmarshaler = (*MyCharData)(nil) + + func (m *MyCharData) UnmarshalXMLAttr(attr Attr) error { panic("must not call") } @@ -698,6 +701,28 @@ func TestUnmarshaler(t *testing.T) { } } +var errText = "UnmarshalXML failed" +type MyBodyError struct { + Body string +} + +func (m *MyBodyError) UnmarshalXML(*Decoder, StartElement) error { + return errors.New(errText) +} + +func TestUnmarshalerError(t *testing.T) { + xml := `words` + var m MyBodyError + err := Unmarshal([]byte(xml), &m) + + if err == nil { + t.Errorf("[success], want error %v", errText) + } + if err.Error() != errText { + t.Errorf("[error] %v, want %v", err, errText) + } +} + type Pea struct { Cotelydon string } From d9d0d3ba9659f3594868de961d75ea565ece9794 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sat, 19 Sep 2020 17:39:24 -0400 Subject: [PATCH 13/32] test all cases of CopyToken --- src/encoding/xml/xml_test.go | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index efddca43e9102e..0405548395ed84 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -597,6 +597,45 @@ func TestCopyTokenCharData(t *testing.T) { } } +func TestCopyTokenComment(t *testing.T) { + data := []byte("same data") + var tok1 Token = Comment(data) + tok2 := CopyToken(tok1) + if !reflect.DeepEqual(tok1, tok2) { + t.Error("CopyToken(Comment) != Comment") + } + data[1] = 'o' + if reflect.DeepEqual(tok1, tok2) { + t.Error("CopyToken(Comment) uses same buffer.") + } +} + +func TestCopyTokenDirective(t *testing.T) { + data := []byte("same data") + var tok1 Token = Directive(data) + tok2 := CopyToken(tok1) + if !reflect.DeepEqual(tok1, tok2) { + t.Error("CopyToken(Directive) != Directive") + } + data[1] = 'o' + if reflect.DeepEqual(tok1, tok2) { + t.Error("CopyToken(Directive) uses same buffer.") + } +} + +func TestCopyTokenProcInst(t *testing.T) { + data := []byte("same data") + var tok1 Token = ProcInst{"hello", data} + tok2 := CopyToken(tok1) + if !reflect.DeepEqual(tok1, tok2) { + t.Error("CopyToken(ProcInst) != ProcInst") + } + data[1] = 'o' + if reflect.DeepEqual(tok1, tok2) { + t.Error("CopyToken(ProcInst) uses same buffer.") + } +} + func TestCopyTokenStartElement(t *testing.T) { elt := StartElement{Name{"", "hello"}, []Attr{{Name{"", "lang"}, "en"}}} var tok1 Token = elt @@ -613,6 +652,19 @@ func TestCopyTokenStartElement(t *testing.T) { } } +func TestCopyTokenDefaultCase(t *testing.T) { + data := []byte("same data") + var tok1 = Token(data) + tok2 := CopyToken(data) + if !reflect.DeepEqual(tok1, tok2) { + t.Error("CopyToken(Token]) != Token") + } + data[1] = 'o' + if !reflect.DeepEqual(tok1, tok2) { + t.Error("CopyToken(CharData) uses different buffer.") + } +} + func TestSyntaxErrorLineNum(t *testing.T) { testInput := "

Foo

\n\n

Bar\n" d := NewDecoder(strings.NewReader(testInput)) From 7788df1ce3fbad0944d3c6cdf145e11976989267 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Wed, 23 Sep 2020 15:04:40 -0400 Subject: [PATCH 14/32] add TestTokenAutoClose --- src/encoding/xml/xml_test.go | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index 0405548395ed84..94be55ca98d1ec 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -584,6 +584,37 @@ func TestValuelessAttrs(t *testing.T) { } } +const testInputAutoClose = ` + + +` + +var cookedTokensAutoClose = []Token{ + CharData("\n"), + StartElement{Name:Name{Space:"", Local:"lol"}, Attr:[]Attr{}}, + EndElement{Name:Name{Space:"", Local:"lol"}}, + CharData("\n"), + StartElement{Name:Name{Space:"", Local:"lol"}, Attr:[]Attr{}}, + EndElement{Name:Name{Space:"", Local:"lol"}}, + CharData("\n"), +} + +func TestTokenAutoClose(t *testing.T) { + d := NewDecoder(strings.NewReader(testInputAutoClose)) + d.Strict = false + d.AutoClose = []string{"LOL"} + + for i, want := range cookedTokensAutoClose { + have, err := d.Token() + if err != nil { + t.Fatalf("token %d: unexpected error: %s", i, err) + } + if !reflect.DeepEqual(have, want) { + t.Errorf("token %d = %#v want %#v", i, have, want) + } + } +} + func TestCopyTokenCharData(t *testing.T) { data := []byte("same data") var tok1 Token = CharData(data) @@ -729,7 +760,6 @@ var characterTests = []struct { } func TestDisallowedCharacters(t *testing.T) { - for i, tt := range characterTests { d := NewDecoder(strings.NewReader(tt.in)) var err error From a2992db782b3e5db5603448d14aed802fb648f84 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Wed, 23 Sep 2020 15:34:55 -0400 Subject: [PATCH 15/32] test (e *SyntaxError) Error() --- src/encoding/xml/xml_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index 94be55ca98d1ec..6e9d388997d5e9 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -706,8 +706,8 @@ func TestSyntaxErrorLineNum(t *testing.T) { if !ok { t.Error("Expected SyntaxError.") } - if synerr.Line != 3 { - t.Error("SyntaxError didn't have correct line number.") + if synerr.Error() != `XML syntax error on line 3: expected element name after Date: Sat, 26 Sep 2020 11:03:00 -0400 Subject: [PATCH 16/32] new TestTokenErrors, deleteTestSyntaxErrorLineNum --- src/encoding/xml/xml_test.go | 39 ++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index 6e9d388997d5e9..362d2131f990af 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -190,6 +190,7 @@ var xmlInput = []string{ "", @@ -430,6 +431,29 @@ func TestToken(t *testing.T) { } } +func TestTokenErrors(t *testing.T) { + tests := []struct { + input string + expectedError string + }{ + {``, `XML syntax error on line 1: unexpected end element `}, + } + for _, test := range tests { + d := NewDecoder(strings.NewReader(test.input)) + d.Strict = false + + var err error + for _, err = d.Token(); err == nil; _, err = d.Token() { + } + if _, ok := err.(*SyntaxError); !ok { + t.Fatalf(`xmlInput "%s": expected SyntaxError not received`, test.input) + } + if err.Error() != test.expectedError { + t.Fatalf(`err.Error() = "%s", want "%s"`, err.Error(), test.expectedError) + } + } +} + func TestSyntax(t *testing.T) { for i := range xmlInput { d := NewDecoder(strings.NewReader(xmlInput[i])) @@ -696,21 +720,6 @@ func TestCopyTokenDefaultCase(t *testing.T) { } } -func TestSyntaxErrorLineNum(t *testing.T) { - testInput := "

Foo

\n\n

Bar\n" - d := NewDecoder(strings.NewReader(testInput)) - var err error - for _, err = d.Token(); err == nil; _, err = d.Token() { - } - synerr, ok := err.(*SyntaxError) - if !ok { - t.Error("Expected SyntaxError.") - } - if synerr.Error() != `XML syntax error on line 3: expected element name after ` d := NewDecoder(strings.NewReader(input)) From bdfb5e6c2d6a73a4a5ec96fb171b25d2d6961df4 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sat, 3 Oct 2020 14:52:39 -0400 Subject: [PATCH 17/32] two new cases for (d *Decoder) rawToken --- src/encoding/xml/xml_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index 362d2131f990af..bd1e896302b164 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -437,6 +437,9 @@ func TestTokenErrors(t *testing.T) { expectedError string }{ {``, `XML syntax error on line 1: unexpected end element `}, + {``, `XML syntax error on line 1: expected target name after `, `XML syntax error on line 1: unexpected EOF`}, + } for _, test := range tests { d := NewDecoder(strings.NewReader(test.input)) From 19302424552e12389cacf2b4b30eb3893347bf80 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sat, 3 Oct 2020 20:03:06 -0400 Subject: [PATCH 18/32] new TestRawTokenAltEncodingErrors, TestRawTokenAltEncodingPanic --- src/encoding/xml/xml_test.go | 56 ++++++++++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 5 deletions(-) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index bd1e896302b164..a7cb60d6e027ab 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -301,6 +301,48 @@ func TestRawTokenAltEncoding(t *testing.T) { testRawToken(t, d, testInputAltEncoding, rawTokensAltEncoding) } +func TestRawTokenAltEncodingErrors(t *testing.T) { + tests := []struct { + charsetReader func(charset string, input io.Reader) (io.Reader, error) + expectedError string + }{ + { + func(_ string, _ io.Reader) (io.Reader, error) {return nil, fmt.Errorf("terrible")}, + `xml: opening charset "x-testing-uppercase": terrible`, + }, + } + for _, test := range tests { + d := NewDecoder(strings.NewReader(testInputAltEncoding)) + d.CharsetReader = test.charsetReader + + var err error + for _, err = d.Token(); err == nil; _, err = d.Token() { + } + if err.Error() != test.expectedError { + t.Fatalf(`err.Error() = "%s", want "%s"`, err.Error(), test.expectedError) + } + } +} + +func TestRawTokenAltEncodingPanic(t *testing.T) { + defer func() { + expectedError := `CharsetReader returned a nil Reader for charset x-testing-uppercase` + r := recover() + if r == nil { + t.Errorf("code did not panic but should have") + } else if r != expectedError { + t.Fatalf(`panic = "%s", want "%s"`, r, expectedError) + } + }() + + d := NewDecoder(strings.NewReader(testInputAltEncoding)) + d.CharsetReader = func(charset string, input io.Reader) (io.Reader, error) {return nil, nil} + + var err error + for _, err = d.Token(); err == nil; _, err = d.Token() { + } +} + func TestRawTokenAltEncodingNoConverter(t *testing.T) { d := NewDecoder(strings.NewReader(testInputAltEncoding)) token, err := d.RawToken() @@ -434,12 +476,16 @@ func TestToken(t *testing.T) { func TestTokenErrors(t *testing.T) { tests := []struct { input string + syntaxError bool expectedError string }{ - {``, `XML syntax error on line 1: unexpected end element `}, - {``, `XML syntax error on line 1: expected target name after `, `XML syntax error on line 1: unexpected EOF`}, - + {``, true,`XML syntax error on line 1: unexpected end element `}, + {``, true,`XML syntax error on line 1: expected target name after `, true,`XML syntax error on line 1: unexpected EOF`}, + {``, false,`xml: unsupported version "1.1"; only version 1.0 is supported`}, + {``, false,`xml: unsupported version "1"; only version 1.0 is supported`}, + {``, false,`xml: unsupported version "wat"; only version 1.0 is supported`}, + {``, false,`xml: encoding "UTF-9000" declared but Decoder.CharsetReader is nil`}, } for _, test := range tests { d := NewDecoder(strings.NewReader(test.input)) @@ -448,7 +494,7 @@ func TestTokenErrors(t *testing.T) { var err error for _, err = d.Token(); err == nil; _, err = d.Token() { } - if _, ok := err.(*SyntaxError); !ok { + if _, ok := err.(*SyntaxError); test.syntaxError && !ok { t.Fatalf(`xmlInput "%s": expected SyntaxError not received`, test.input) } if err.Error() != test.expectedError { From 9942b662c6549b7d7b12a0af0f9b7587d97958aa Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sat, 3 Oct 2020 21:20:47 -0400 Subject: [PATCH 19/32] new TestNewDecoder --- src/encoding/xml/xml_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index a7cb60d6e027ab..7efc453f78f61a 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -219,6 +219,21 @@ func TestRawToken(t *testing.T) { testRawToken(t, d, testInput, rawTokens) } +// myIOReader does not implement io.ByteReader +type myIOReader struct { + input string +} + +func (m myIOReader) Read(p []byte) (int, error) { + return strings.NewReader(m.input).Read(p) +} + +func TestNewDecoder(t *testing.T) { + d := NewDecoder(myIOReader{testInput}) + d.Entity = testEntity + testRawToken(t, d, testInput, rawTokens) +} + const nonStrictInput = ` non&entity &unknown;entity @@ -486,6 +501,12 @@ func TestTokenErrors(t *testing.T) { {``, false,`xml: unsupported version "1"; only version 1.0 is supported`}, {``, false,`xml: unsupported version "wat"; only version 1.0 is supported`}, {``, false,`xml: encoding "UTF-9000" declared but Decoder.CharsetReader is nil`}, + {` Date: Sat, 3 Oct 2020 22:41:43 -0400 Subject: [PATCH 20/32] more coverage --- src/encoding/xml/xml_test.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index 7efc453f78f61a..dca3bbeea93d6e 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -219,7 +219,8 @@ func TestRawToken(t *testing.T) { testRawToken(t, d, testInput, rawTokens) } -// myIOReader does not implement io.ByteReader +// myIOReader does not implement io.ByteReader forcing a code path +// where we wrap the io.Reader in an bufio.NewReader type myIOReader struct { input string } @@ -506,7 +507,17 @@ func TestTokenErrors(t *testing.T) { {`", false,`XML syntax error on line 1: invalid UTF-8`}, } for _, test := range tests { d := NewDecoder(strings.NewReader(test.input)) From 1b6d31a8cd09a966ec8c580a79be9f22a9d8dd76 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 4 Oct 2020 11:58:37 -0400 Subject: [PATCH 21/32] test isName --- src/encoding/xml/xml_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index dca3bbeea93d6e..c7420454f791c3 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -518,6 +518,8 @@ func TestTokenErrors(t *testing.T) { {`"`, false,`XML syntax error on line 1: unexpected EOF`}, {`"&B`, false,`XML syntax error on line 1: unexpected EOF`}, {"", false,`XML syntax error on line 1: invalid UTF-8`}, + {"", false,"XML syntax error on line 1: invalid XML name: \xe6"}, + {"", false,"XML syntax error on line 1: invalid XML name: w\xe6"}, } for _, test := range tests { d := NewDecoder(strings.NewReader(test.input)) From 90e0587f9f24bbeb11781e2f9618f8d49a166dbf Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 4 Oct 2020 12:22:16 -0400 Subject: [PATCH 22/32] new TestProcInstEncodeTokenBadNameString --- src/encoding/xml/marshal_test.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 4f2c12f9a450c5..16f5284e41b0a7 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -2454,6 +2454,28 @@ func TestProcInstEncodeToken(t *testing.T) { } } +func TestProcInstEncodeTokenBadNameString(t *testing.T) { + tests := []struct { + input ProcInst + }{ + {ProcInst{"\xe6", []byte("Instruction")}}, + {ProcInst{".", []byte("Instruction")}}, + {ProcInst{"a\xe6", []byte("Instruction")}}, + } + expectedError := `xml: EncodeToken of ProcInst with invalid Target` + + for _, test := range tests { + var buf bytes.Buffer + enc := NewEncoder(&buf) + + if err := enc.EncodeToken(test.input); err == nil { + t.Fatalf(`expected not receive expected error for input %s`, test.input) + } else if err.Error() != expectedError { + t.Fatalf(`err.Error() = "%s", want "%s"`, err.Error(), expectedError) + } + } +} + func TestDecodeEncode(t *testing.T) { var in, out bytes.Buffer in.WriteString(` From 9e67c0be92dcf2df17db77eee24ce2f7a30651c0 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 4 Oct 2020 12:55:58 -0400 Subject: [PATCH 23/32] new EscapeText tests --- src/encoding/xml/xml_test.go | 44 ++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index c7420454f791c3..005f948328cf96 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -952,18 +952,44 @@ func TestEscapeTextIOErrors(t *testing.T) { } } -func TestEscapeTextInvalidChar(t *testing.T) { - input := []byte("A \x00 terminated string.") - expected := "A \uFFFD terminated string." +var escapeTextTests = []struct { + input []byte + expected string +}{ + {[]byte("A \" terminated string."), "A " terminated string."}, + {[]byte(`A ' terminated string.`), "A ' terminated string."}, + {[]byte("A & terminated string."), "A & terminated string."}, + {[]byte("A < terminated string."), "A < terminated string."}, + {[]byte("A > terminated string."), "A > terminated string."}, + {[]byte("A \t terminated string."), "A terminated string."}, + {[]byte("A \n terminated string."), "A terminated string."}, + {[]byte("A \r terminated string."), "A terminated string."}, + {[]byte("A \x00 terminated string."), "A \uFFFD terminated string."}, +} + +func TestEscapeText(t *testing.T) { + for _, test := range escapeTextTests { + buff := new(bytes.Buffer) + if err := EscapeText(buff, test.input); err != nil { + t.Fatalf("have %v, want nil", err) + } - buff := new(bytes.Buffer) - if err := EscapeText(buff, input); err != nil { - t.Fatalf("have %v, want nil", err) + text := buff.String() + if text != test.expected { + t.Errorf("have %v, want %v", text, test.expected) + } } - text := buff.String() +} + +func TestEscape(t *testing.T) { + for _, test := range escapeTextTests { + buff := new(bytes.Buffer) + Escape(buff, test.input) - if text != expected { - t.Errorf("have %v, want %v", text, expected) + text := buff.String() + if text != test.expected { + t.Errorf("have %v, want %v", text, test.expected) + } } } From fb0d6f1f8c798ddd471fc1282035997d1e41738f Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 4 Oct 2020 19:17:25 -0400 Subject: [PATCH 24/32] new TestUnmarshalerTextError --- src/encoding/xml/read_test.go | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index ad3e76845b2344..2ca61ea72df852 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -658,8 +658,6 @@ func (m *MyCharData) UnmarshalXML(d *Decoder, start StartElement) error { var _ Unmarshaler = (*MyCharData)(nil) - - func (m *MyCharData) UnmarshalXMLAttr(attr Attr) error { panic("must not call") } @@ -723,6 +721,27 @@ func TestUnmarshalerError(t *testing.T) { } } +type MyBodyErrorText struct { + Body string +} + +func (m MyBodyErrorText) UnmarshalText([]byte) error { + return errors.New(errText) +} + +func TestUnmarshalerTextError(t *testing.T) { + xml := `words` + var m MyBodyErrorText + err := Unmarshal([]byte(xml), &m) + + if err == nil { + t.Errorf("[success], want error %v", errText) + } + if err.Error() != errText { + t.Errorf("[error] %v, want %v", err, errText) + } +} + type Pea struct { Cotelydon string } From 9a8e2f1032f1d19dd5fdd9ed449fa737c356cc82 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 4 Oct 2020 19:55:16 -0400 Subject: [PATCH 25/32] new TestUnmarshalUnknownType --- src/encoding/xml/read_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index 2ca61ea72df852..4292fbb6484ad6 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -742,6 +742,15 @@ func TestUnmarshalerTextError(t *testing.T) { } } +func TestUnmarshalUnknownType(t *testing.T) { + expectedError := `unknown type func()` + var dst func() + + if err := Unmarshal([]byte(pathTestString), &dst); err == nil || err.Error() != expectedError{ + t.Errorf("have %v, want %v", err, expectedError) + } +} + type Pea struct { Cotelydon string } From 6930c03e6c47a4dab61dc1a73a34332d5bfad5aa Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 4 Oct 2020 19:56:39 -0400 Subject: [PATCH 26/32] new TestUnmarshalErrors --- src/encoding/xml/read_test.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index 4292fbb6484ad6..a67783a2c4be6e 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -751,6 +751,32 @@ func TestUnmarshalUnknownType(t *testing.T) { } } +func TestUnmarshalErrors(t *testing.T) { + //xml := ` + // + // hello world + // howdy world + // + //` + + tests := []struct { + input []byte + expectedError string + }{ + {[]byte(""), "EOF"}, + //{[]byte(xml), `xxx`}, + //{[]byte(`words`), `xxx`}, + } + + for _, test := range tests { + var dst MyStruct + + if err := Unmarshal(test.input, &dst); err == nil || err.Error() != test.expectedError{ + t.Errorf("have %v, want %v", err, test.expectedError) + } + } +} + type Pea struct { Cotelydon string } From 7058a0dc7dc77f4cd6bd2e97c6234f111cb0ed15 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 11 Oct 2020 11:21:20 -0400 Subject: [PATCH 27/32] new TestSkip, TestSkipErrors --- src/encoding/xml/read_test.go | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index a67783a2c4be6e..23a5bc84bd9a11 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -777,6 +777,50 @@ func TestUnmarshalErrors(t *testing.T) { } } +func TestSkip(t *testing.T) { + xml := "bbbnnnuuuwefwef" + + var dst Person + d := NewDecoder(strings.NewReader(xml)) + + // consume a start element + if _, err := d.Token(); err != nil { + t.Fatalf("expected d.Token() to succeed but got: :%v", err) + } + + // consume the rest until the matching end element + if err := d.Skip(); err != nil { + t.Fatalf("expected d.Skip() to succeed but got: :%v", err) + } + + if err := d.Decode(&dst); err != nil { + t.Fatalf("expected d.Decode() to succeed but got: :%v", err) + } +} + +func TestSkipErrors(t *testing.T) { + tests := []struct { + input string + expectedError string + }{ + {"", `XML syntax error on line 1: unexpected EOF`}, + {"bbbb", `XML syntax error on line 1: unexpected EOF`}, + } + + for _, test := range tests { + d := NewDecoder(strings.NewReader(test.input)) + + // consume a start element + if _, err := d.Token(); err != nil { + t.Fatalf("expected d.Token() to succeed but got: :%v", err) + } + + if err := d.Skip(); err == nil || err.Error() != test.expectedError{ + t.Errorf("have %v, want %v", err, test.expectedError) + } + } +} + type Pea struct { Cotelydon string } From b1c25b25a8f6d6fa4aafaaa78ca2dbae12de25b5 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sun, 11 Oct 2020 13:57:14 -0400 Subject: [PATCH 28/32] cover unmarshal() reflect.Struct cases --- src/encoding/xml/read_test.go | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index 23a5bc84bd9a11..5f8f1bfbaccb88 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -751,25 +751,22 @@ func TestUnmarshalUnknownType(t *testing.T) { } } -func TestUnmarshalErrors(t *testing.T) { - //xml := ` - // - // hello world - // howdy world - // - //` +type XMLNameWithNamespace struct { + XMLName Name `xml:"ns Test3"` +} +func TestUnmarshalErrors(t *testing.T) { tests := []struct { input []byte expectedError string }{ {[]byte(""), "EOF"}, - //{[]byte(xml), `xxx`}, - //{[]byte(`words`), `xxx`}, + {[]byte("bbb"), `expected element type but have `}, + {[]byte(`inside`), `expected element in name space ns but have namespace`}, + {[]byte(`inside`), `expected element in name space ns but have no name space`}, } - for _, test := range tests { - var dst MyStruct + var dst XMLNameWithNamespace if err := Unmarshal(test.input, &dst); err == nil || err.Error() != test.expectedError{ t.Errorf("have %v, want %v", err, test.expectedError) From 1374b9800ba3fbeb558a9b77668d64a3c4a8dc7e Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sat, 17 Oct 2020 12:44:49 -0400 Subject: [PATCH 29/32] gofmt --- src/encoding/xml/marshal_test.go | 28 ++++++++++++++-------------- src/encoding/xml/read_test.go | 13 +++++++------ 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 16f5284e41b0a7..fda532c34d5bb2 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -818,9 +818,9 @@ var marshalTests = []struct { MarshalOnly: true, }, { - Value: &ServiceErrorNameConflict{Port: &Port{Number: "80"}}, - ExpectXML: `80`, - MarshalError: `conflicts with name`, + Value: &ServiceErrorNameConflict{Port: &Port{Number: "80"}}, + ExpectXML: `80`, + MarshalError: `conflicts with name`, UnmarshalError: `conflicts with name`, }, { @@ -988,9 +988,9 @@ var marshalTests = []struct { UnmarshalOnly: true, }, { - Value: &NameInFieldError{Name{Space: "ns", Local: "foo"}}, - ExpectXML: ``, - MarshalError: "xml: namespace without name in field", + Value: &NameInFieldError{Name{Space: "ns", Local: "foo"}}, + ExpectXML: ``, + MarshalError: "xml: namespace without name in field", UnmarshalError: "xml: namespace without name in field", }, @@ -1282,13 +1282,13 @@ var marshalTests = []struct { Value: &MyMarshalerTest{}, }, { - ExpectXML: `hello world`, - Value: &MyMarshalerTestErrorMissingName{}, + ExpectXML: `hello world`, + Value: &MyMarshalerTestErrorMissingName{}, MarshalError: "xml: EncodeElement of StartElement with missing name", }, { - ExpectXML: `hello world`, - Value: &MyMarshalerTestErrorNotClosed{}, + ExpectXML: `hello world`, + Value: &MyMarshalerTestErrorNotClosed{}, MarshalError: "MarshalXML wrote invalid XML", }, { @@ -1748,15 +1748,15 @@ type BadAttr struct { } type BadTag struct { - Comment string `xml:",comment,omitempty"` + Comment string `xml:",comment,omitempty"` } type BadTagMultipleModes struct { - Comment string `xml:",attr,comment"` + Comment string `xml:",attr,comment"` } type BadTagTrailingTag struct { - Comment string `xml:"comment>"` + Comment string `xml:"comment>"` } type BadEmbed struct { @@ -2456,7 +2456,7 @@ func TestProcInstEncodeToken(t *testing.T) { func TestProcInstEncodeTokenBadNameString(t *testing.T) { tests := []struct { - input ProcInst + input ProcInst }{ {ProcInst{"\xe6", []byte("Instruction")}}, {ProcInst{".", []byte("Instruction")}}, diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go index 5f8f1bfbaccb88..bd515d4b532403 100644 --- a/src/encoding/xml/read_test.go +++ b/src/encoding/xml/read_test.go @@ -700,6 +700,7 @@ func TestUnmarshaler(t *testing.T) { } var errText = "UnmarshalXML failed" + type MyBodyError struct { Body string } @@ -746,18 +747,18 @@ func TestUnmarshalUnknownType(t *testing.T) { expectedError := `unknown type func()` var dst func() - if err := Unmarshal([]byte(pathTestString), &dst); err == nil || err.Error() != expectedError{ + if err := Unmarshal([]byte(pathTestString), &dst); err == nil || err.Error() != expectedError { t.Errorf("have %v, want %v", err, expectedError) } } type XMLNameWithNamespace struct { - XMLName Name `xml:"ns Test3"` + XMLName Name `xml:"ns Test3"` } func TestUnmarshalErrors(t *testing.T) { tests := []struct { - input []byte + input []byte expectedError string }{ {[]byte(""), "EOF"}, @@ -768,7 +769,7 @@ func TestUnmarshalErrors(t *testing.T) { for _, test := range tests { var dst XMLNameWithNamespace - if err := Unmarshal(test.input, &dst); err == nil || err.Error() != test.expectedError{ + if err := Unmarshal(test.input, &dst); err == nil || err.Error() != test.expectedError { t.Errorf("have %v, want %v", err, test.expectedError) } } @@ -797,7 +798,7 @@ func TestSkip(t *testing.T) { func TestSkipErrors(t *testing.T) { tests := []struct { - input string + input string expectedError string }{ {"", `XML syntax error on line 1: unexpected EOF`}, @@ -812,7 +813,7 @@ func TestSkipErrors(t *testing.T) { t.Fatalf("expected d.Token() to succeed but got: :%v", err) } - if err := d.Skip(); err == nil || err.Error() != test.expectedError{ + if err := d.Skip(); err == nil || err.Error() != test.expectedError { t.Errorf("have %v, want %v", err, test.expectedError) } } From c95cbfee0ae58ea30caf296fb438a131ed317ac0 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sat, 17 Oct 2020 12:45:11 -0400 Subject: [PATCH 30/32] gofmt --- src/encoding/xml/xml_test.go | 68 ++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index 005f948328cf96..9ccfabb5776b64 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -323,7 +323,7 @@ func TestRawTokenAltEncodingErrors(t *testing.T) { expectedError string }{ { - func(_ string, _ io.Reader) (io.Reader, error) {return nil, fmt.Errorf("terrible")}, + func(_ string, _ io.Reader) (io.Reader, error) { return nil, fmt.Errorf("terrible") }, `xml: opening charset "x-testing-uppercase": terrible`, }, } @@ -352,7 +352,7 @@ func TestRawTokenAltEncodingPanic(t *testing.T) { }() d := NewDecoder(strings.NewReader(testInputAltEncoding)) - d.CharsetReader = func(charset string, input io.Reader) (io.Reader, error) {return nil, nil} + d.CharsetReader = func(charset string, input io.Reader) (io.Reader, error) { return nil, nil } var err error for _, err = d.Token(); err == nil; _, err = d.Token() { @@ -491,35 +491,35 @@ func TestToken(t *testing.T) { func TestTokenErrors(t *testing.T) { tests := []struct { - input string - syntaxError bool + input string + syntaxError bool expectedError string }{ - {``, true,`XML syntax error on line 1: unexpected end element `}, - {``, true,`XML syntax error on line 1: expected target name after `, true,`XML syntax error on line 1: unexpected EOF`}, - {``, false,`xml: unsupported version "1.1"; only version 1.0 is supported`}, - {``, false,`xml: unsupported version "1"; only version 1.0 is supported`}, - {``, false,`xml: unsupported version "wat"; only version 1.0 is supported`}, - {``, false,`xml: encoding "UTF-9000" declared but Decoder.CharsetReader is nil`}, - {`", false,`XML syntax error on line 1: invalid UTF-8`}, - {"", false,"XML syntax error on line 1: invalid XML name: \xe6"}, - {"", false,"XML syntax error on line 1: invalid XML name: w\xe6"}, + {``, true, `XML syntax error on line 1: unexpected end element `}, + {``, true, `XML syntax error on line 1: expected target name after `, true, `XML syntax error on line 1: unexpected EOF`}, + {``, false, `xml: unsupported version "1.1"; only version 1.0 is supported`}, + {``, false, `xml: unsupported version "1"; only version 1.0 is supported`}, + {``, false, `xml: unsupported version "wat"; only version 1.0 is supported`}, + {``, false, `xml: encoding "UTF-9000" declared but Decoder.CharsetReader is nil`}, + {`", false, `XML syntax error on line 1: invalid UTF-8`}, + {"", false, "XML syntax error on line 1: invalid XML name: \xe6"}, + {"", false, "XML syntax error on line 1: invalid XML name: w\xe6"}, } for _, test := range tests { d := NewDecoder(strings.NewReader(test.input)) @@ -698,11 +698,11 @@ const testInputAutoClose = ` var cookedTokensAutoClose = []Token{ CharData("\n"), - StartElement{Name:Name{Space:"", Local:"lol"}, Attr:[]Attr{}}, - EndElement{Name:Name{Space:"", Local:"lol"}}, + StartElement{Name: Name{Space: "", Local: "lol"}, Attr: []Attr{}}, + EndElement{Name: Name{Space: "", Local: "lol"}}, CharData("\n"), - StartElement{Name:Name{Space:"", Local:"lol"}, Attr:[]Attr{}}, - EndElement{Name:Name{Space:"", Local:"lol"}}, + StartElement{Name: Name{Space: "", Local: "lol"}, Attr: []Attr{}}, + EndElement{Name: Name{Space: "", Local: "lol"}}, CharData("\n"), } @@ -953,7 +953,7 @@ func TestEscapeTextIOErrors(t *testing.T) { } var escapeTextTests = []struct { - input []byte + input []byte expected string }{ {[]byte("A \" terminated string."), "A " terminated string."}, From 9ec3a791d6bf401c659db1f2b56e87f8e6b37371 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sat, 17 Oct 2020 12:55:55 -0400 Subject: [PATCH 31/32] remove comments --- src/encoding/xml/README.md | 48 ++ src/encoding/xml/coverage.out | 1121 ++++++++++++++++++++++++++++ src/encoding/xml/marshal_test.go | 8 +- src/encoding/xml/playgroud_test.go | 40 + 4 files changed, 1210 insertions(+), 7 deletions(-) create mode 100644 src/encoding/xml/README.md create mode 100644 src/encoding/xml/coverage.out create mode 100644 src/encoding/xml/playgroud_test.go diff --git a/src/encoding/xml/README.md b/src/encoding/xml/README.md new file mode 100644 index 00000000000000..201b21d0ac114b --- /dev/null +++ b/src/encoding/xml/README.md @@ -0,0 +1,48 @@ +## steps to compile go +roughly followed this guide +https://github.com/golang/go/wiki/WindowsBuild +and ran the executable + +install MinGW latest +GCC for Windows 64 & 32 bits +http://mingw-w64.org/doku.php + +https://jmeubank.github.io/tdm-gcc/ + +## Go testing +go test -coverprofile=coverage.out ./... +go tool cover -func=coverage.out +go tool cover -html=coverage.out + +## encoding/xml notes + +### detailed test coverage +go test -coverprofile=coverage.out +go tool cover -func=coverage.out +go tool cover -html=coverage.out + +go test -coverprofile=coverage.out && go tool cover -html=coverage.out + +### top-level coverage +go test + +### run specific test +go test -v -run TestDecodeEOF + +### TODO +0. modify animal custom marshaller example and add namespaces + (see if test coverage luckily goes up) +1. marshal_test.go +2. add logs and look for close-by corner cases in the big loop +3. bring coverage up to 95% + +reach 95% code coverage +ticket creator asked for +> more tests for name spaces, custom marshalers, custom +unmarshalers, and the interaction between all those + +## Links +https://go-review.googlesource.com/dashboard/self +https://golang.org/doc/contribute.html +https://github.com/golang/go/issues/6094 +https://golang.org/pkg/encoding/xml/#example_Encoder \ No newline at end of file diff --git a/src/encoding/xml/coverage.out b/src/encoding/xml/coverage.out new file mode 100644 index 00000000000000..05708a1fe4ee2c --- /dev/null +++ b/src/encoding/xml/coverage.out @@ -0,0 +1,1121 @@ +mode: set +std/encoding/xml/marshal.go:79.45,81.49 2 1 +std/encoding/xml/marshal.go:84.2,84.23 1 1 +std/encoding/xml/marshal.go:81.49,83.3 1 1 +std/encoding/xml/marshal.go:125.74,129.38 4 1 +std/encoding/xml/marshal.go:132.2,132.23 1 1 +std/encoding/xml/marshal.go:129.38,131.3 1 1 +std/encoding/xml/marshal.go:141.39,145.2 3 1 +std/encoding/xml/marshal.go:150.51,153.2 2 1 +std/encoding/xml/marshal.go:161.49,163.16 2 1 +std/encoding/xml/marshal.go:166.2,166.22 1 1 +std/encoding/xml/marshal.go:163.16,165.3 1 1 +std/encoding/xml/marshal.go:176.76,178.16 2 1 +std/encoding/xml/marshal.go:181.2,181.22 1 1 +std/encoding/xml/marshal.go:178.16,180.3 1 1 +std/encoding/xml/marshal.go:202.48,205.23 2 1 +std/encoding/xml/marshal.go:254.2,254.29 1 1 +std/encoding/xml/marshal.go:206.20,207.42 1 1 +std/encoding/xml/marshal.go:210.18,211.44 1 1 +std/encoding/xml/marshal.go:214.16,215.26 1 1 +std/encoding/xml/marshal.go:216.15,217.36 1 1 +std/encoding/xml/marshal.go:220.3,223.30 4 1 +std/encoding/xml/marshal.go:224.16,227.45 1 1 +std/encoding/xml/marshal.go:230.3,230.30 1 1 +std/encoding/xml/marshal.go:233.3,233.42 1 1 +std/encoding/xml/marshal.go:236.3,238.22 3 1 +std/encoding/xml/marshal.go:242.3,242.22 1 1 +std/encoding/xml/marshal.go:243.17,244.27 1 1 +std/encoding/xml/marshal.go:247.3,249.21 3 1 +std/encoding/xml/marshal.go:250.10,251.62 1 1 +std/encoding/xml/marshal.go:207.42,209.4 1 1 +std/encoding/xml/marshal.go:211.44,213.4 1 1 +std/encoding/xml/marshal.go:217.36,219.4 1 1 +std/encoding/xml/marshal.go:227.45,229.4 1 1 +std/encoding/xml/marshal.go:230.30,232.4 1 1 +std/encoding/xml/marshal.go:233.42,235.4 1 1 +std/encoding/xml/marshal.go:238.22,241.4 2 1 +std/encoding/xml/marshal.go:244.27,246.4 1 1 +std/encoding/xml/marshal.go:259.43,265.24 2 1 +std/encoding/xml/marshal.go:294.2,294.49 1 1 +std/encoding/xml/marshal.go:265.24,266.10 1 1 +std/encoding/xml/marshal.go:267.18,268.16 1 1 +std/encoding/xml/marshal.go:274.21,275.20 1 1 +std/encoding/xml/marshal.go:279.30,280.15 1 1 +std/encoding/xml/marshal.go:281.17,282.89 1 1 +std/encoding/xml/marshal.go:287.17,288.18 1 1 +std/encoding/xml/marshal.go:291.4,291.11 1 1 +std/encoding/xml/marshal.go:268.16,269.84 1 1 +std/encoding/xml/marshal.go:269.84,271.6 1 1 +std/encoding/xml/marshal.go:275.20,277.5 1 1 +std/encoding/xml/marshal.go:282.89,284.5 1 1 +std/encoding/xml/marshal.go:284.10,286.5 1 1 +std/encoding/xml/marshal.go:288.18,290.5 1 1 +std/encoding/xml/marshal.go:299.35,301.2 1 1 +std/encoding/xml/marshal.go:320.55,321.47 1 1 +std/encoding/xml/marshal.go:329.2,329.19 1 1 +std/encoding/xml/marshal.go:334.2,334.25 1 1 +std/encoding/xml/marshal.go:341.2,342.49 2 1 +std/encoding/xml/marshal.go:345.2,345.78 1 1 +std/encoding/xml/marshal.go:348.2,348.38 1 1 +std/encoding/xml/marshal.go:352.2,352.28 1 1 +std/encoding/xml/marshal.go:362.2,373.15 9 1 +std/encoding/xml/marshal.go:321.47,323.3 1 1 +std/encoding/xml/marshal.go:329.19,331.3 1 1 +std/encoding/xml/marshal.go:334.25,337.3 2 1 +std/encoding/xml/marshal.go:342.49,344.3 1 1 +std/encoding/xml/marshal.go:345.78,347.3 1 1 +std/encoding/xml/marshal.go:348.38,351.3 1 1 +std/encoding/xml/marshal.go:352.28,354.26 1 1 +std/encoding/xml/marshal.go:354.26,355.68 1 1 +std/encoding/xml/marshal.go:355.68,357.10 2 1 +std/encoding/xml/marshal.go:377.51,380.2 2 1 +std/encoding/xml/marshal.go:382.32,384.2 1 1 +std/encoding/xml/marshal.go:386.31,387.26 1 1 +std/encoding/xml/marshal.go:387.26,390.19 3 1 +std/encoding/xml/marshal.go:393.3,393.29 1 1 +std/encoding/xml/marshal.go:390.19,391.9 1 1 +std/encoding/xml/marshal.go:405.104,406.60 1 1 +std/encoding/xml/marshal.go:410.2,410.20 1 1 +std/encoding/xml/marshal.go:413.2,413.70 1 1 +std/encoding/xml/marshal.go:420.2,420.67 1 1 +std/encoding/xml/marshal.go:427.2,431.57 3 1 +std/encoding/xml/marshal.go:434.2,434.19 1 1 +std/encoding/xml/marshal.go:442.2,442.61 1 1 +std/encoding/xml/marshal.go:445.2,445.19 1 1 +std/encoding/xml/marshal.go:453.2,453.92 1 1 +std/encoding/xml/marshal.go:462.2,463.16 2 1 +std/encoding/xml/marshal.go:473.2,475.26 2 1 +std/encoding/xml/marshal.go:489.2,489.44 1 1 +std/encoding/xml/marshal.go:492.2,492.28 1 1 +std/encoding/xml/marshal.go:501.2,501.30 1 1 +std/encoding/xml/marshal.go:522.2,522.45 1 1 +std/encoding/xml/marshal.go:526.2,526.34 1 1 +std/encoding/xml/marshal.go:538.2,538.16 1 1 +std/encoding/xml/marshal.go:542.2,542.47 1 1 +std/encoding/xml/marshal.go:546.2,546.29 1 1 +std/encoding/xml/marshal.go:406.60,408.3 1 1 +std/encoding/xml/marshal.go:410.20,412.3 1 1 +std/encoding/xml/marshal.go:413.70,415.3 1 1 +std/encoding/xml/marshal.go:420.67,421.18 1 1 +std/encoding/xml/marshal.go:424.3,424.19 1 1 +std/encoding/xml/marshal.go:421.18,423.4 1 1 +std/encoding/xml/marshal.go:431.57,433.3 1 0 +std/encoding/xml/marshal.go:434.19,436.63 2 1 +std/encoding/xml/marshal.go:436.63,438.4 1 1 +std/encoding/xml/marshal.go:442.61,444.3 1 1 +std/encoding/xml/marshal.go:445.19,447.67 2 1 +std/encoding/xml/marshal.go:447.67,449.4 1 0 +std/encoding/xml/marshal.go:453.92,454.40 1 1 +std/encoding/xml/marshal.go:459.3,459.13 1 1 +std/encoding/xml/marshal.go:454.40,455.77 1 1 +std/encoding/xml/marshal.go:455.77,457.5 1 0 +std/encoding/xml/marshal.go:463.16,465.3 1 1 +std/encoding/xml/marshal.go:475.26,478.3 2 1 +std/encoding/xml/marshal.go:478.8,478.33 1 1 +std/encoding/xml/marshal.go:478.33,480.25 2 1 +std/encoding/xml/marshal.go:480.25,482.4 1 1 +std/encoding/xml/marshal.go:482.9,484.59 2 1 +std/encoding/xml/marshal.go:484.59,486.5 1 1 +std/encoding/xml/marshal.go:489.44,491.3 1 1 +std/encoding/xml/marshal.go:492.28,494.17 2 1 +std/encoding/xml/marshal.go:497.3,497.26 1 1 +std/encoding/xml/marshal.go:494.17,496.4 1 1 +std/encoding/xml/marshal.go:501.30,503.29 2 1 +std/encoding/xml/marshal.go:506.3,508.54 2 1 +std/encoding/xml/marshal.go:512.3,512.51 1 1 +std/encoding/xml/marshal.go:516.3,517.57 2 1 +std/encoding/xml/marshal.go:503.29,504.12 1 1 +std/encoding/xml/marshal.go:508.54,509.12 1 1 +std/encoding/xml/marshal.go:512.51,513.12 1 0 +std/encoding/xml/marshal.go:517.57,519.4 1 1 +std/encoding/xml/marshal.go:522.45,524.3 1 0 +std/encoding/xml/marshal.go:526.34,528.3 1 1 +std/encoding/xml/marshal.go:528.8,530.18 2 1 +std/encoding/xml/marshal.go:530.18,532.4 1 0 +std/encoding/xml/marshal.go:532.9,532.22 1 1 +std/encoding/xml/marshal.go:532.22,534.4 1 1 +std/encoding/xml/marshal.go:534.9,536.4 1 1 +std/encoding/xml/marshal.go:538.16,540.3 1 1 +std/encoding/xml/marshal.go:542.47,544.3 1 0 +std/encoding/xml/marshal.go:550.88,551.68 1 1 +std/encoding/xml/marshal.go:562.2,562.19 1 1 +std/encoding/xml/marshal.go:576.2,576.68 1 1 +std/encoding/xml/marshal.go:585.2,585.19 1 1 +std/encoding/xml/marshal.go:598.2,598.20 1 1 +std/encoding/xml/marshal.go:607.2,607.78 1 1 +std/encoding/xml/marshal.go:617.2,617.28 1 1 +std/encoding/xml/marshal.go:622.2,623.16 2 1 +std/encoding/xml/marshal.go:626.2,626.14 1 1 +std/encoding/xml/marshal.go:629.2,630.12 2 1 +std/encoding/xml/marshal.go:551.68,553.17 2 0 +std/encoding/xml/marshal.go:556.3,556.28 1 0 +std/encoding/xml/marshal.go:559.3,559.13 1 0 +std/encoding/xml/marshal.go:553.17,555.4 1 0 +std/encoding/xml/marshal.go:556.28,558.4 1 0 +std/encoding/xml/marshal.go:562.19,564.67 2 1 +std/encoding/xml/marshal.go:564.67,566.18 2 1 +std/encoding/xml/marshal.go:569.4,569.29 1 1 +std/encoding/xml/marshal.go:572.4,572.14 1 1 +std/encoding/xml/marshal.go:566.18,568.5 1 0 +std/encoding/xml/marshal.go:569.29,571.5 1 1 +std/encoding/xml/marshal.go:576.68,578.17 2 1 +std/encoding/xml/marshal.go:581.3,582.13 2 1 +std/encoding/xml/marshal.go:578.17,580.4 1 0 +std/encoding/xml/marshal.go:585.19,587.67 2 1 +std/encoding/xml/marshal.go:587.67,589.18 2 0 +std/encoding/xml/marshal.go:592.4,593.14 2 0 +std/encoding/xml/marshal.go:589.18,591.5 1 0 +std/encoding/xml/marshal.go:599.38,600.18 1 1 +std/encoding/xml/marshal.go:603.3,603.19 1 1 +std/encoding/xml/marshal.go:600.18,602.4 1 1 +std/encoding/xml/marshal.go:607.78,609.26 2 1 +std/encoding/xml/marshal.go:614.3,614.13 1 1 +std/encoding/xml/marshal.go:609.26,610.67 1 1 +std/encoding/xml/marshal.go:610.67,612.5 1 0 +std/encoding/xml/marshal.go:617.28,620.3 2 1 +std/encoding/xml/marshal.go:623.16,625.3 1 1 +std/encoding/xml/marshal.go:626.14,628.3 1 1 +std/encoding/xml/marshal.go:635.97,639.26 2 1 +std/encoding/xml/marshal.go:652.2,652.14 1 1 +std/encoding/xml/marshal.go:639.26,642.3 2 0 +std/encoding/xml/marshal.go:642.8,642.45 1 1 +std/encoding/xml/marshal.go:642.45,645.3 2 1 +std/encoding/xml/marshal.go:645.8,645.29 1 1 +std/encoding/xml/marshal.go:645.29,647.3 1 0 +std/encoding/xml/marshal.go:647.8,651.3 1 1 +std/encoding/xml/marshal.go:656.77,663.16 4 1 +std/encoding/xml/marshal.go:668.2,668.21 1 1 +std/encoding/xml/marshal.go:671.2,672.12 2 1 +std/encoding/xml/marshal.go:663.16,665.3 1 1 +std/encoding/xml/marshal.go:668.21,670.3 1 1 +std/encoding/xml/marshal.go:676.94,677.45 1 1 +std/encoding/xml/marshal.go:680.2,681.16 2 1 +std/encoding/xml/marshal.go:684.2,685.31 2 1 +std/encoding/xml/marshal.go:677.45,679.3 1 0 +std/encoding/xml/marshal.go:681.16,683.3 1 0 +std/encoding/xml/marshal.go:689.57,690.28 1 1 +std/encoding/xml/marshal.go:694.2,701.28 6 1 +std/encoding/xml/marshal.go:708.2,708.34 1 1 +std/encoding/xml/marshal.go:723.2,724.12 2 1 +std/encoding/xml/marshal.go:690.28,692.3 1 1 +std/encoding/xml/marshal.go:701.28,705.3 3 1 +std/encoding/xml/marshal.go:708.34,710.23 2 1 +std/encoding/xml/marshal.go:713.3,714.23 2 1 +std/encoding/xml/marshal.go:718.3,721.19 4 1 +std/encoding/xml/marshal.go:710.23,711.12 1 1 +std/encoding/xml/marshal.go:714.23,717.4 2 1 +std/encoding/xml/marshal.go:727.45,728.22 1 1 +std/encoding/xml/marshal.go:731.2,731.59 1 1 +std/encoding/xml/marshal.go:734.2,734.47 1 1 +std/encoding/xml/marshal.go:740.2,748.12 8 1 +std/encoding/xml/marshal.go:728.22,730.3 1 1 +std/encoding/xml/marshal.go:731.59,733.3 1 1 +std/encoding/xml/marshal.go:734.47,735.30 1 1 +std/encoding/xml/marshal.go:738.3,738.150 1 1 +std/encoding/xml/marshal.go:735.30,737.4 1 1 +std/encoding/xml/marshal.go:751.94,752.20 1 1 +std/encoding/xml/marshal.go:783.2,783.44 1 1 +std/encoding/xml/marshal.go:753.78,754.52 1 1 +std/encoding/xml/marshal.go:755.100,756.54 1 1 +std/encoding/xml/marshal.go:757.40,758.80 1 1 +std/encoding/xml/marshal.go:759.22,760.32 1 1 +std/encoding/xml/marshal.go:761.20,762.50 1 1 +std/encoding/xml/marshal.go:763.21,764.41 1 1 +std/encoding/xml/marshal.go:768.3,769.20 2 1 +std/encoding/xml/marshal.go:775.3,775.24 1 1 +std/encoding/xml/marshal.go:776.21,777.41 1 1 +std/encoding/xml/marshal.go:781.3,781.30 1 1 +std/encoding/xml/marshal.go:764.41,765.9 1 0 +std/encoding/xml/marshal.go:769.20,771.4 1 0 +std/encoding/xml/marshal.go:771.9,774.4 2 1 +std/encoding/xml/marshal.go:777.41,778.9 1 0 +std/encoding/xml/marshal.go:792.47,793.65 1 1 +std/encoding/xml/marshal.go:799.2,799.11 1 1 +std/encoding/xml/marshal.go:793.65,794.17 1 1 +std/encoding/xml/marshal.go:797.3,797.17 1 1 +std/encoding/xml/marshal.go:794.17,796.4 1 1 +std/encoding/xml/marshal.go:802.75,804.30 2 1 +std/encoding/xml/marshal.go:953.2,954.29 2 1 +std/encoding/xml/marshal.go:804.30,806.29 2 1 +std/encoding/xml/marshal.go:809.3,810.20 2 1 +std/encoding/xml/marshal.go:816.3,816.30 1 1 +std/encoding/xml/marshal.go:949.3,949.56 1 1 +std/encoding/xml/marshal.go:806.29,807.12 1 1 +std/encoding/xml/marshal.go:810.20,813.12 1 1 +std/encoding/xml/marshal.go:817.26,819.35 2 1 +std/encoding/xml/marshal.go:822.4,822.48 1 1 +std/encoding/xml/marshal.go:825.4,825.68 1 1 +std/encoding/xml/marshal.go:835.4,835.20 1 1 +std/encoding/xml/marshal.go:849.4,851.21 3 1 +std/encoding/xml/marshal.go:879.4,879.12 1 1 +std/encoding/xml/marshal.go:881.17,882.48 1 1 +std/encoding/xml/marshal.go:885.4,887.96 3 1 +std/encoding/xml/marshal.go:890.4,890.21 1 1 +std/encoding/xml/marshal.go:893.4,897.13 5 1 +std/encoding/xml/marshal.go:915.4,915.16 1 1 +std/encoding/xml/marshal.go:918.4,918.16 1 1 +std/encoding/xml/marshal.go:922.4,923.12 2 1 +std/encoding/xml/marshal.go:925.18,928.31 3 1 +std/encoding/xml/marshal.go:937.34,938.48 1 1 +std/encoding/xml/marshal.go:941.4,941.41 1 1 +std/encoding/xml/marshal.go:819.35,821.5 1 1 +std/encoding/xml/marshal.go:822.48,824.5 1 0 +std/encoding/xml/marshal.go:825.68,827.19 2 1 +std/encoding/xml/marshal.go:830.5,830.41 1 1 +std/encoding/xml/marshal.go:833.5,833.13 1 1 +std/encoding/xml/marshal.go:827.19,829.6 1 0 +std/encoding/xml/marshal.go:830.41,832.6 1 0 +std/encoding/xml/marshal.go:835.20,837.69 2 1 +std/encoding/xml/marshal.go:837.69,839.20 2 0 +std/encoding/xml/marshal.go:842.6,842.42 1 0 +std/encoding/xml/marshal.go:845.6,845.14 1 0 +std/encoding/xml/marshal.go:839.20,841.7 1 0 +std/encoding/xml/marshal.go:842.42,844.7 1 0 +std/encoding/xml/marshal.go:852.80,853.81 1 1 +std/encoding/xml/marshal.go:856.102,857.83 1 1 +std/encoding/xml/marshal.go:860.42,861.108 1 1 +std/encoding/xml/marshal.go:864.22,865.79 1 1 +std/encoding/xml/marshal.go:868.24,869.56 1 1 +std/encoding/xml/marshal.go:872.23,873.48 1 1 +std/encoding/xml/marshal.go:853.81,855.6 1 0 +std/encoding/xml/marshal.go:857.83,859.6 1 0 +std/encoding/xml/marshal.go:861.108,863.6 1 0 +std/encoding/xml/marshal.go:865.79,867.6 1 0 +std/encoding/xml/marshal.go:869.56,871.6 1 0 +std/encoding/xml/marshal.go:873.48,874.42 1 1 +std/encoding/xml/marshal.go:874.42,876.7 1 0 +std/encoding/xml/marshal.go:882.48,884.5 1 0 +std/encoding/xml/marshal.go:887.96,889.5 1 1 +std/encoding/xml/marshal.go:890.21,891.13 1 1 +std/encoding/xml/marshal.go:898.24,902.18 4 1 +std/encoding/xml/marshal.go:905.23,909.18 4 1 +std/encoding/xml/marshal.go:912.12,913.26 1 0 +std/encoding/xml/marshal.go:902.18,904.6 1 1 +std/encoding/xml/marshal.go:909.18,911.6 1 1 +std/encoding/xml/marshal.go:915.16,917.5 1 1 +std/encoding/xml/marshal.go:918.16,921.5 1 1 +std/encoding/xml/marshal.go:929.16,931.13 2 0 +std/encoding/xml/marshal.go:932.16,934.13 2 1 +std/encoding/xml/marshal.go:938.48,940.5 1 0 +std/encoding/xml/marshal.go:941.41,942.82 1 1 +std/encoding/xml/marshal.go:942.82,943.65 1 1 +std/encoding/xml/marshal.go:943.65,945.7 1 0 +std/encoding/xml/marshal.go:949.56,951.4 1 1 +std/encoding/xml/marshal.go:958.44,961.2 2 1 +std/encoding/xml/marshal.go:963.47,964.46 1 1 +std/encoding/xml/marshal.go:967.2,967.20 1 1 +std/encoding/xml/marshal.go:975.2,975.18 1 1 +std/encoding/xml/marshal.go:980.2,980.23 1 1 +std/encoding/xml/marshal.go:983.2,983.23 1 1 +std/encoding/xml/marshal.go:988.2,988.20 1 1 +std/encoding/xml/marshal.go:964.46,966.3 1 1 +std/encoding/xml/marshal.go:967.20,969.19 2 1 +std/encoding/xml/marshal.go:973.3,973.23 1 1 +std/encoding/xml/marshal.go:969.19,972.4 2 1 +std/encoding/xml/marshal.go:975.18,977.3 1 1 +std/encoding/xml/marshal.go:977.8,979.3 1 1 +std/encoding/xml/marshal.go:980.23,982.3 1 0 +std/encoding/xml/marshal.go:983.23,984.32 1 1 +std/encoding/xml/marshal.go:984.32,986.4 1 1 +std/encoding/xml/marshal.go:988.20,991.3 2 1 +std/encoding/xml/marshal.go:1002.52,1004.62 2 1 +std/encoding/xml/marshal.go:1009.2,1009.45 1 1 +std/encoding/xml/marshal.go:1014.2,1015.12 2 1 +std/encoding/xml/marshal.go:1004.62,1005.39 1 1 +std/encoding/xml/marshal.go:1005.39,1006.9 1 0 +std/encoding/xml/marshal.go:1009.45,1010.63 1 1 +std/encoding/xml/marshal.go:1010.63,1012.4 1 0 +std/encoding/xml/marshal.go:1019.52,1020.36 1 1 +std/encoding/xml/marshal.go:1025.2,1026.12 2 1 +std/encoding/xml/marshal.go:1020.36,1021.86 1 1 +std/encoding/xml/marshal.go:1021.86,1023.4 1 0 +std/encoding/xml/marshal.go:1035.47,1037.2 1 1 +std/encoding/xml/marshal.go:1039.41,1040.18 1 1 +std/encoding/xml/marshal.go:1054.2,1054.14 1 0 +std/encoding/xml/marshal.go:1041.65,1042.22 1 1 +std/encoding/xml/marshal.go:1043.20,1044.19 1 1 +std/encoding/xml/marshal.go:1045.78,1046.22 1 1 +std/encoding/xml/marshal.go:1047.100,1048.23 1 1 +std/encoding/xml/marshal.go:1049.40,1050.24 1 1 +std/encoding/xml/marshal.go:1051.38,1052.19 1 1 +std/encoding/xml/read.go:132.50,134.2 1 1 +std/encoding/xml/read.go:138.47,140.2 1 1 +std/encoding/xml/read.go:146.75,148.31 2 1 +std/encoding/xml/read.go:151.2,151.39 1 1 +std/encoding/xml/read.go:148.31,150.3 1 1 +std/encoding/xml/read.go:157.40,157.60 1 1 +std/encoding/xml/read.go:191.43,193.20 2 1 +std/encoding/xml/read.go:196.2,196.31 1 1 +std/encoding/xml/read.go:193.20,195.3 1 1 +std/encoding/xml/read.go:201.82,208.16 5 1 +std/encoding/xml/read.go:213.2,213.17 1 1 +std/encoding/xml/read.go:217.2,217.12 1 1 +std/encoding/xml/read.go:208.16,211.3 2 1 +std/encoding/xml/read.go:213.17,215.3 1 1 +std/encoding/xml/read.go:223.78,226.16 3 1 +std/encoding/xml/read.go:242.2,242.31 1 1 +std/encoding/xml/read.go:226.16,228.17 2 1 +std/encoding/xml/read.go:231.3,231.24 1 1 +std/encoding/xml/read.go:228.17,230.4 1 0 +std/encoding/xml/read.go:232.17,233.18 1 1 +std/encoding/xml/read.go:236.21,237.11 1 0 +std/encoding/xml/read.go:238.19,239.11 1 1 +std/encoding/xml/read.go:233.18,235.5 1 1 +std/encoding/xml/read.go:246.69,247.31 1 1 +std/encoding/xml/read.go:253.2,253.70 1 1 +std/encoding/xml/read.go:258.2,258.19 1 1 +std/encoding/xml/read.go:266.2,266.70 1 1 +std/encoding/xml/read.go:271.2,271.19 1 1 +std/encoding/xml/read.go:278.2,278.85 1 1 +std/encoding/xml/read.go:292.2,292.28 1 1 +std/encoding/xml/read.go:297.2,297.43 1 1 +std/encoding/xml/read.go:247.31,248.18 1 1 +std/encoding/xml/read.go:251.3,251.19 1 1 +std/encoding/xml/read.go:248.18,250.4 1 1 +std/encoding/xml/read.go:253.70,257.3 1 0 +std/encoding/xml/read.go:258.19,260.69 2 1 +std/encoding/xml/read.go:260.69,262.4 1 1 +std/encoding/xml/read.go:266.70,270.3 1 0 +std/encoding/xml/read.go:271.19,273.69 2 1 +std/encoding/xml/read.go:273.69,275.4 1 1 +std/encoding/xml/read.go:278.85,285.61 3 1 +std/encoding/xml/read.go:289.3,289.13 1 1 +std/encoding/xml/read.go:285.61,288.4 2 0 +std/encoding/xml/read.go:292.28,295.3 2 1 +std/encoding/xml/read.go:308.75,312.18 3 1 +std/encoding/xml/read.go:327.2,327.53 1 1 +std/encoding/xml/read.go:334.2,334.31 1 1 +std/encoding/xml/read.go:341.2,341.66 1 1 +std/encoding/xml/read.go:347.2,348.19 2 1 +std/encoding/xml/read.go:355.2,356.70 2 1 +std/encoding/xml/read.go:360.2,361.19 2 1 +std/encoding/xml/read.go:368.2,383.28 3 1 +std/encoding/xml/read.go:527.1,528.6 1 1 +std/encoding/xml/read.go:579.2,584.102 2 1 +std/encoding/xml/read.go:592.2,592.46 1 1 +std/encoding/xml/read.go:602.2,602.50 1 1 +std/encoding/xml/read.go:606.2,606.36 1 1 +std/encoding/xml/read.go:613.2,613.32 1 1 +std/encoding/xml/read.go:622.2,622.12 1 1 +std/encoding/xml/read.go:312.18,313.7 1 1 +std/encoding/xml/read.go:313.7,315.18 2 1 +std/encoding/xml/read.go:318.4,318.39 1 1 +std/encoding/xml/read.go:315.18,317.5 1 1 +std/encoding/xml/read.go:318.39,320.10 2 1 +std/encoding/xml/read.go:327.53,329.44 2 1 +std/encoding/xml/read.go:329.44,331.4 1 1 +std/encoding/xml/read.go:334.31,335.18 1 1 +std/encoding/xml/read.go:338.3,338.19 1 1 +std/encoding/xml/read.go:335.18,337.4 1 1 +std/encoding/xml/read.go:341.66,345.3 1 1 +std/encoding/xml/read.go:348.19,350.65 2 1 +std/encoding/xml/read.go:350.65,352.4 1 1 +std/encoding/xml/read.go:356.70,358.3 1 1 +std/encoding/xml/read.go:361.19,363.69 2 1 +std/encoding/xml/read.go:363.69,365.4 1 1 +std/encoding/xml/read.go:384.10,386.57 2 1 +std/encoding/xml/read.go:388.25,393.18 2 1 +std/encoding/xml/read.go:395.21,398.41 3 1 +std/encoding/xml/read.go:406.3,410.56 3 1 +std/encoding/xml/read.go:414.3,414.13 1 1 +std/encoding/xml/read.go:416.236,418.15 2 1 +std/encoding/xml/read.go:420.22,423.22 3 1 +std/encoding/xml/read.go:428.3,430.17 3 1 +std/encoding/xml/read.go:434.3,437.27 3 1 +std/encoding/xml/read.go:462.3,462.32 1 1 +std/encoding/xml/read.go:493.3,493.31 1 1 +std/encoding/xml/read.go:398.41,401.9 2 1 +std/encoding/xml/read.go:410.56,413.4 2 0 +std/encoding/xml/read.go:423.22,425.9 2 1 +std/encoding/xml/read.go:430.17,432.4 1 1 +std/encoding/xml/read.go:437.27,439.58 2 1 +std/encoding/xml/read.go:443.4,446.60 3 1 +std/encoding/xml/read.go:455.4,456.42 2 1 +std/encoding/xml/read.go:439.58,441.5 1 1 +std/encoding/xml/read.go:446.60,448.31 2 1 +std/encoding/xml/read.go:453.5,453.29 1 1 +std/encoding/xml/read.go:448.31,450.6 1 1 +std/encoding/xml/read.go:450.11,452.6 1 1 +std/encoding/xml/read.go:456.42,458.5 1 1 +std/encoding/xml/read.go:462.32,465.32 3 1 +std/encoding/xml/read.go:483.4,483.28 1 1 +std/encoding/xml/read.go:465.32,467.32 2 1 +std/encoding/xml/read.go:468.16,470.90 2 1 +std/encoding/xml/read.go:477.23,478.19 1 1 +std/encoding/xml/read.go:470.90,471.54 1 1 +std/encoding/xml/read.go:474.7,474.21 1 1 +std/encoding/xml/read.go:471.54,473.8 1 1 +std/encoding/xml/read.go:478.19,480.7 1 1 +std/encoding/xml/read.go:483.28,486.52 3 1 +std/encoding/xml/read.go:486.52,488.6 1 0 +std/encoding/xml/read.go:493.31,495.31 2 1 +std/encoding/xml/read.go:496.27,497.28 1 1 +std/encoding/xml/read.go:501.18,502.31 1 1 +std/encoding/xml/read.go:506.31,507.27 1 1 +std/encoding/xml/read.go:511.19,512.27 1 1 +std/encoding/xml/read.go:497.28,499.6 1 1 +std/encoding/xml/read.go:502.31,504.6 1 1 +std/encoding/xml/read.go:507.27,509.6 1 1 +std/encoding/xml/read.go:512.27,514.24 2 1 +std/encoding/xml/read.go:514.24,517.7 2 1 +std/encoding/xml/read.go:517.12,519.7 1 0 +std/encoding/xml/read.go:528.6,530.24 2 1 +std/encoding/xml/read.go:533.3,534.17 2 1 +std/encoding/xml/read.go:537.3,537.26 1 1 +std/encoding/xml/read.go:530.24,532.4 1 1 +std/encoding/xml/read.go:534.17,536.4 1 1 +std/encoding/xml/read.go:538.21,540.20 2 1 +std/encoding/xml/read.go:552.4,552.17 1 1 +std/encoding/xml/read.go:558.19,559.25 1 1 +std/encoding/xml/read.go:565.4,565.14 1 1 +std/encoding/xml/read.go:567.17,568.26 1 1 +std/encoding/xml/read.go:572.16,573.29 1 1 +std/encoding/xml/read.go:540.20,542.19 2 1 +std/encoding/xml/read.go:545.5,545.39 1 1 +std/encoding/xml/read.go:542.19,544.6 1 0 +std/encoding/xml/read.go:545.39,547.53 2 1 +std/encoding/xml/read.go:547.53,549.7 1 0 +std/encoding/xml/read.go:552.17,553.36 1 1 +std/encoding/xml/read.go:553.36,555.6 1 0 +std/encoding/xml/read.go:559.25,561.26 2 1 +std/encoding/xml/read.go:561.26,563.6 1 1 +std/encoding/xml/read.go:568.26,570.5 1 1 +std/encoding/xml/read.go:573.29,575.5 1 1 +std/encoding/xml/read.go:584.102,586.93 2 0 +std/encoding/xml/read.go:589.3,589.29 1 0 +std/encoding/xml/read.go:586.93,588.4 1 0 +std/encoding/xml/read.go:592.46,594.69 2 1 +std/encoding/xml/read.go:594.69,595.88 1 1 +std/encoding/xml/read.go:598.4,598.30 1 1 +std/encoding/xml/read.go:595.88,597.5 1 0 +std/encoding/xml/read.go:602.50,604.3 1 1 +std/encoding/xml/read.go:607.22,608.31 1 1 +std/encoding/xml/read.go:609.21,610.34 1 1 +std/encoding/xml/read.go:614.22,615.35 1 1 +std/encoding/xml/read.go:616.21,617.46 1 1 +std/encoding/xml/read.go:617.46,619.4 1 0 +std/encoding/xml/read.go:625.59,628.31 2 1 +std/encoding/xml/read.go:636.2,636.20 1 1 +std/encoding/xml/read.go:690.2,690.12 1 1 +std/encoding/xml/read.go:628.31,629.18 1 1 +std/encoding/xml/read.go:632.3,632.19 1 1 +std/encoding/xml/read.go:629.18,631.4 1 1 +std/encoding/xml/read.go:637.23,637.23 0 1 +std/encoding/xml/read.go:639.10,640.69 1 1 +std/encoding/xml/read.go:641.78,642.20 1 1 +std/encoding/xml/read.go:646.3,647.17 2 1 +std/encoding/xml/read.go:650.3,650.19 1 1 +std/encoding/xml/read.go:651.100,652.20 1 1 +std/encoding/xml/read.go:656.3,657.17 2 1 +std/encoding/xml/read.go:660.3,660.20 1 1 +std/encoding/xml/read.go:661.40,662.20 1 1 +std/encoding/xml/read.go:666.3,667.17 2 1 +std/encoding/xml/read.go:670.3,670.21 1 1 +std/encoding/xml/read.go:671.20,672.20 1 1 +std/encoding/xml/read.go:676.3,677.17 2 1 +std/encoding/xml/read.go:680.3,680.21 1 1 +std/encoding/xml/read.go:681.22,682.29 1 1 +std/encoding/xml/read.go:683.21,684.20 1 1 +std/encoding/xml/read.go:688.3,688.20 1 1 +std/encoding/xml/read.go:642.20,645.4 2 1 +std/encoding/xml/read.go:647.17,649.4 1 0 +std/encoding/xml/read.go:652.20,655.4 2 0 +std/encoding/xml/read.go:657.17,659.4 1 1 +std/encoding/xml/read.go:662.20,665.4 2 1 +std/encoding/xml/read.go:667.17,669.4 1 0 +std/encoding/xml/read.go:672.20,675.4 2 1 +std/encoding/xml/read.go:677.17,679.4 1 0 +std/encoding/xml/read.go:684.20,687.4 1 1 +std/encoding/xml/read.go:698.134,701.30 2 1 +std/encoding/xml/read.go:727.2,727.14 1 1 +std/encoding/xml/read.go:734.2,734.6 1 1 +std/encoding/xml/read.go:701.30,703.125 2 1 +std/encoding/xml/read.go:706.3,706.26 1 1 +std/encoding/xml/read.go:711.3,711.75 1 1 +std/encoding/xml/read.go:715.3,715.91 1 1 +std/encoding/xml/read.go:703.125,704.12 1 1 +std/encoding/xml/read.go:706.26,707.38 1 1 +std/encoding/xml/read.go:707.38,708.18 1 1 +std/encoding/xml/read.go:711.75,714.4 1 1 +std/encoding/xml/read.go:715.91,724.9 3 1 +std/encoding/xml/read.go:727.14,730.3 1 1 +std/encoding/xml/read.go:734.6,737.17 3 1 +std/encoding/xml/read.go:740.3,740.26 1 1 +std/encoding/xml/read.go:737.17,739.4 1 0 +std/encoding/xml/read.go:741.21,743.18 2 1 +std/encoding/xml/read.go:746.4,746.18 1 1 +std/encoding/xml/read.go:751.19,752.20 1 1 +std/encoding/xml/read.go:743.18,745.5 1 0 +std/encoding/xml/read.go:746.18,747.36 1 1 +std/encoding/xml/read.go:747.36,749.6 1 0 +std/encoding/xml/read.go:763.32,764.6 1 1 +std/encoding/xml/read.go:764.6,766.17 2 1 +std/encoding/xml/read.go:769.3,769.21 1 1 +std/encoding/xml/read.go:766.17,768.4 1 1 +std/encoding/xml/read.go:770.21,771.35 1 1 +std/encoding/xml/read.go:774.19,775.14 1 1 +std/encoding/xml/read.go:771.35,773.5 1 1 +std/encoding/xml/typeinfo.go:53.55,54.38 1 1 +std/encoding/xml/typeinfo.go:58.2,59.53 2 1 +std/encoding/xml/typeinfo.go:108.2,109.28 2 1 +std/encoding/xml/typeinfo.go:54.38,56.3 1 1 +std/encoding/xml/typeinfo.go:59.53,61.26 2 1 +std/encoding/xml/typeinfo.go:61.26,63.68 2 1 +std/encoding/xml/typeinfo.go:68.4,68.19 1 1 +std/encoding/xml/typeinfo.go:91.4,92.18 2 1 +std/encoding/xml/typeinfo.go:96.4,96.25 1 1 +std/encoding/xml/typeinfo.go:102.4,102.58 1 1 +std/encoding/xml/typeinfo.go:63.68,64.13 1 1 +std/encoding/xml/typeinfo.go:68.19,70.32 2 1 +std/encoding/xml/typeinfo.go:73.5,73.35 1 1 +std/encoding/xml/typeinfo.go:70.32,72.6 1 1 +std/encoding/xml/typeinfo.go:73.35,75.20 2 1 +std/encoding/xml/typeinfo.go:78.6,78.30 1 1 +std/encoding/xml/typeinfo.go:81.6,81.41 1 1 +std/encoding/xml/typeinfo.go:87.6,87.14 1 1 +std/encoding/xml/typeinfo.go:75.20,77.7 1 1 +std/encoding/xml/typeinfo.go:78.30,80.7 1 1 +std/encoding/xml/typeinfo.go:81.41,83.62 2 1 +std/encoding/xml/typeinfo.go:83.62,85.8 1 1 +std/encoding/xml/typeinfo.go:92.18,94.5 1 1 +std/encoding/xml/typeinfo.go:96.25,98.13 2 1 +std/encoding/xml/typeinfo.go:102.58,104.5 1 1 +std/encoding/xml/typeinfo.go:113.84,118.42 3 1 +std/encoding/xml/typeinfo.go:123.2,124.22 2 1 +std/encoding/xml/typeinfo.go:173.2,173.36 1 1 +std/encoding/xml/typeinfo.go:178.2,178.23 1 1 +std/encoding/xml/typeinfo.go:186.2,186.15 1 1 +std/encoding/xml/typeinfo.go:199.2,200.22 2 1 +std/encoding/xml/typeinfo.go:203.2,203.35 1 1 +std/encoding/xml/typeinfo.go:206.2,207.22 2 1 +std/encoding/xml/typeinfo.go:217.2,217.31 1 1 +std/encoding/xml/typeinfo.go:225.2,225.19 1 1 +std/encoding/xml/typeinfo.go:118.42,120.3 1 1 +std/encoding/xml/typeinfo.go:124.22,126.3 1 1 +std/encoding/xml/typeinfo.go:126.8,128.35 2 1 +std/encoding/xml/typeinfo.go:148.3,149.44 2 1 +std/encoding/xml/typeinfo.go:160.3,160.32 1 1 +std/encoding/xml/typeinfo.go:163.3,163.71 1 1 +std/encoding/xml/typeinfo.go:166.3,166.13 1 1 +std/encoding/xml/typeinfo.go:128.35,129.16 1 1 +std/encoding/xml/typeinfo.go:130.16,131.25 1 1 +std/encoding/xml/typeinfo.go:132.17,133.26 1 1 +std/encoding/xml/typeinfo.go:134.20,135.29 1 1 +std/encoding/xml/typeinfo.go:136.20,137.29 1 1 +std/encoding/xml/typeinfo.go:138.19,139.28 1 1 +std/encoding/xml/typeinfo.go:140.15,141.24 1 1 +std/encoding/xml/typeinfo.go:142.21,143.30 1 1 +std/encoding/xml/typeinfo.go:150.10,151.27 1 1 +std/encoding/xml/typeinfo.go:152.74,153.55 1 1 +std/encoding/xml/typeinfo.go:156.11,158.17 1 1 +std/encoding/xml/typeinfo.go:153.55,155.5 1 1 +std/encoding/xml/typeinfo.go:160.32,162.4 1 1 +std/encoding/xml/typeinfo.go:163.71,165.4 1 1 +std/encoding/xml/typeinfo.go:166.13,169.4 1 1 +std/encoding/xml/typeinfo.go:173.36,176.3 1 1 +std/encoding/xml/typeinfo.go:178.23,184.3 2 1 +std/encoding/xml/typeinfo.go:186.15,190.55 1 1 +std/encoding/xml/typeinfo.go:195.3,195.20 1 1 +std/encoding/xml/typeinfo.go:190.55,192.4 1 1 +std/encoding/xml/typeinfo.go:192.9,194.4 1 1 +std/encoding/xml/typeinfo.go:200.22,202.3 1 1 +std/encoding/xml/typeinfo.go:203.35,205.3 1 1 +std/encoding/xml/typeinfo.go:207.22,208.36 1 1 +std/encoding/xml/typeinfo.go:211.3,211.43 1 1 +std/encoding/xml/typeinfo.go:208.36,210.4 1 1 +std/encoding/xml/typeinfo.go:217.31,220.51 3 1 +std/encoding/xml/typeinfo.go:220.51,223.4 1 1 +std/encoding/xml/typeinfo.go:231.59,232.32 1 1 +std/encoding/xml/typeinfo.go:235.2,235.34 1 1 +std/encoding/xml/typeinfo.go:238.2,238.44 1 1 +std/encoding/xml/typeinfo.go:251.2,251.12 1 1 +std/encoding/xml/typeinfo.go:232.32,234.3 1 1 +std/encoding/xml/typeinfo.go:235.34,237.3 1 1 +std/encoding/xml/typeinfo.go:238.44,240.24 2 1 +std/encoding/xml/typeinfo.go:243.3,244.37 2 1 +std/encoding/xml/typeinfo.go:249.3,249.8 1 1 +std/encoding/xml/typeinfo.go:240.24,241.12 1 1 +std/encoding/xml/typeinfo.go:244.37,246.4 1 1 +std/encoding/xml/typeinfo.go:254.24,255.12 1 1 +std/encoding/xml/typeinfo.go:258.2,258.10 1 1 +std/encoding/xml/typeinfo.go:255.12,257.3 1 1 +std/encoding/xml/typeinfo.go:268.77,272.30 2 1 +std/encoding/xml/typeinfo.go:301.2,301.22 1 1 +std/encoding/xml/typeinfo.go:308.2,308.30 1 1 +std/encoding/xml/typeinfo.go:315.2,315.30 1 1 +std/encoding/xml/typeinfo.go:326.2,326.43 1 1 +std/encoding/xml/typeinfo.go:331.2,332.12 2 1 +std/encoding/xml/typeinfo.go:272.30,274.43 2 1 +std/encoding/xml/typeinfo.go:277.3,277.71 1 1 +std/encoding/xml/typeinfo.go:280.3,281.29 2 1 +std/encoding/xml/typeinfo.go:286.3,286.44 1 1 +std/encoding/xml/typeinfo.go:274.43,275.12 1 1 +std/encoding/xml/typeinfo.go:277.71,278.12 1 1 +std/encoding/xml/typeinfo.go:281.29,282.42 1 1 +std/encoding/xml/typeinfo.go:282.42,283.18 1 1 +std/encoding/xml/typeinfo.go:286.44,287.52 1 1 +std/encoding/xml/typeinfo.go:287.52,289.5 1 1 +std/encoding/xml/typeinfo.go:290.9,290.51 1 1 +std/encoding/xml/typeinfo.go:290.51,291.52 1 1 +std/encoding/xml/typeinfo.go:291.52,293.5 1 1 +std/encoding/xml/typeinfo.go:294.9,295.30 1 1 +std/encoding/xml/typeinfo.go:295.30,297.5 1 1 +std/encoding/xml/typeinfo.go:301.22,304.3 2 1 +std/encoding/xml/typeinfo.go:308.30,309.47 1 1 +std/encoding/xml/typeinfo.go:309.47,311.4 1 1 +std/encoding/xml/typeinfo.go:315.30,317.37 2 1 +std/encoding/xml/typeinfo.go:317.37,321.4 3 1 +std/encoding/xml/typeinfo.go:326.43,330.3 3 1 +std/encoding/xml/typeinfo.go:343.39,345.2 1 1 +std/encoding/xml/typeinfo.go:357.90,358.30 1 1 +std/encoding/xml/typeinfo.go:373.2,373.10 1 1 +std/encoding/xml/typeinfo.go:358.30,359.12 1 1 +std/encoding/xml/typeinfo.go:371.3,371.17 1 1 +std/encoding/xml/typeinfo.go:359.12,361.68 2 1 +std/encoding/xml/typeinfo.go:361.68,362.18 1 1 +std/encoding/xml/typeinfo.go:368.5,368.17 1 1 +std/encoding/xml/typeinfo.go:362.18,363.32 1 1 +std/encoding/xml/typeinfo.go:366.6,366.41 1 1 +std/encoding/xml/typeinfo.go:363.32,365.7 1 1 +std/encoding/xml/xml.go:34.38,36.2 1 1 +std/encoding/xml/xml.go:64.43,69.2 4 1 +std/encoding/xml/xml.go:72.40,74.2 1 1 +std/encoding/xml/xml.go:86.32,90.2 3 1 +std/encoding/xml/xml.go:93.35,93.67 1 1 +std/encoding/xml/xml.go:100.33,100.64 1 1 +std/encoding/xml/xml.go:109.35,112.2 2 1 +std/encoding/xml/xml.go:119.37,119.70 1 1 +std/encoding/xml/xml.go:122.31,123.23 1 1 +std/encoding/xml/xml.go:135.2,135.10 1 1 +std/encoding/xml/xml.go:124.16,125.18 1 1 +std/encoding/xml/xml.go:126.15,127.18 1 1 +std/encoding/xml/xml.go:128.17,129.18 1 1 +std/encoding/xml/xml.go:130.16,131.18 1 1 +std/encoding/xml/xml.go:132.20,133.18 1 1 +std/encoding/xml/xml.go:229.39,238.2 3 1 +std/encoding/xml/xml.go:241.46,243.31 1 1 +std/encoding/xml/xml.go:246.2,253.10 2 1 +std/encoding/xml/xml.go:243.31,245.3 1 1 +std/encoding/xml/xml.go:279.42,282.42 3 1 +std/encoding/xml/xml.go:285.2,285.24 1 1 +std/encoding/xml/xml.go:298.2,298.15 1 1 +std/encoding/xml/xml.go:304.2,304.24 1 1 +std/encoding/xml/xml.go:338.2,338.15 1 1 +std/encoding/xml/xml.go:282.42,284.3 1 1 +std/encoding/xml/xml.go:285.24,288.3 2 1 +std/encoding/xml/xml.go:288.8,288.46 1 1 +std/encoding/xml/xml.go:288.46,289.10 1 1 +std/encoding/xml/xml.go:295.3,295.16 1 1 +std/encoding/xml/xml.go:290.36,291.13 1 1 +std/encoding/xml/xml.go:292.62,293.41 1 1 +std/encoding/xml/xml.go:298.15,299.35 1 1 +std/encoding/xml/xml.go:299.35,302.4 2 1 +std/encoding/xml/xml.go:305.20,310.29 1 1 +std/encoding/xml/xml.go:324.3,325.26 2 1 +std/encoding/xml/xml.go:328.3,329.9 2 1 +std/encoding/xml/xml.go:331.18,333.25 2 1 +std/encoding/xml/xml.go:336.3,336.9 1 1 +std/encoding/xml/xml.go:310.29,311.35 1 1 +std/encoding/xml/xml.go:316.4,316.57 1 1 +std/encoding/xml/xml.go:311.35,315.5 3 1 +std/encoding/xml/xml.go:316.57,321.5 3 1 +std/encoding/xml/xml.go:325.26,327.4 1 1 +std/encoding/xml/xml.go:333.25,335.4 1 1 +std/encoding/xml/xml.go:350.58,351.9 1 1 +std/encoding/xml/xml.go:361.2,361.32 1 1 +std/encoding/xml/xml.go:352.30,353.9 1 1 +std/encoding/xml/xml.go:354.39,355.9 1 1 +std/encoding/xml/xml.go:356.28,357.19 1 1 +std/encoding/xml/xml.go:358.47,359.9 1 0 +std/encoding/xml/xml.go:361.32,363.3 1 1 +std/encoding/xml/xml.go:363.8,363.26 1 1 +std/encoding/xml/xml.go:363.26,365.3 1 1 +std/encoding/xml/xml.go:368.47,373.37 1 1 +std/encoding/xml/xml.go:373.37,375.3 1 1 +std/encoding/xml/xml.go:375.8,377.3 1 1 +std/encoding/xml/xml.go:397.41,399.14 2 1 +std/encoding/xml/xml.go:404.2,407.10 4 1 +std/encoding/xml/xml.go:399.14,401.3 1 1 +std/encoding/xml/xml.go:401.8,403.3 1 1 +std/encoding/xml/xml.go:410.32,412.14 2 1 +std/encoding/xml/xml.go:417.2,417.10 1 1 +std/encoding/xml/xml.go:412.14,416.3 3 1 +std/encoding/xml/xml.go:423.29,428.29 2 1 +std/encoding/xml/xml.go:433.2,433.52 1 1 +std/encoding/xml/xml.go:436.2,437.14 2 1 +std/encoding/xml/xml.go:442.2,444.16 3 1 +std/encoding/xml/xml.go:428.29,430.3 1 0 +std/encoding/xml/xml.go:433.52,435.3 1 0 +std/encoding/xml/xml.go:437.14,439.3 1 1 +std/encoding/xml/xml.go:439.8,441.3 1 1 +std/encoding/xml/xml.go:449.33,450.42 1 1 +std/encoding/xml/xml.go:453.2,454.13 2 1 +std/encoding/xml/xml.go:450.42,452.3 1 1 +std/encoding/xml/xml.go:458.42,461.2 2 1 +std/encoding/xml/xml.go:465.61,470.2 4 1 +std/encoding/xml/xml.go:473.49,475.2 1 1 +std/encoding/xml/xml.go:483.50,486.9 3 1 +std/encoding/xml/xml.go:507.2,507.69 1 1 +std/encoding/xml/xml.go:516.2,516.13 1 1 +std/encoding/xml/xml.go:487.38,489.15 2 1 +std/encoding/xml/xml.go:490.34,491.16 1 1 +std/encoding/xml/xml.go:497.3,498.15 2 1 +std/encoding/xml/xml.go:499.34,502.15 2 0 +std/encoding/xml/xml.go:491.16,496.4 4 1 +std/encoding/xml/xml.go:507.69,509.11 2 1 +std/encoding/xml/xml.go:509.11,511.4 1 1 +std/encoding/xml/xml.go:511.9,513.4 1 1 +std/encoding/xml/xml.go:521.52,522.44 1 1 +std/encoding/xml/xml.go:525.2,526.32 2 1 +std/encoding/xml/xml.go:536.2,536.19 1 1 +std/encoding/xml/xml.go:522.44,524.3 1 1 +std/encoding/xml/xml.go:526.32,527.33 1 1 +std/encoding/xml/xml.go:527.33,530.36 2 1 +std/encoding/xml/xml.go:533.4,533.9 1 1 +std/encoding/xml/xml.go:530.36,532.5 1 1 +std/encoding/xml/xml.go:544.45,545.26 1 1 +std/encoding/xml/xml.go:548.2,548.21 1 1 +std/encoding/xml/xml.go:545.26,547.3 1 0 +std/encoding/xml/xml.go:551.45,552.16 1 1 +std/encoding/xml/xml.go:555.2,555.18 1 1 +std/encoding/xml/xml.go:558.2,558.17 1 1 +std/encoding/xml/xml.go:566.2,567.9 2 1 +std/encoding/xml/xml.go:571.2,571.14 1 1 +std/encoding/xml/xml.go:581.2,581.31 1 1 +std/encoding/xml/xml.go:584.2,584.11 1 1 +std/encoding/xml/xml.go:776.2,783.32 3 1 +std/encoding/xml/xml.go:790.2,791.6 2 1 +std/encoding/xml/xml.go:840.2,840.11 1 1 +std/encoding/xml/xml.go:844.2,844.38 1 1 +std/encoding/xml/xml.go:552.16,554.3 1 1 +std/encoding/xml/xml.go:555.18,557.3 1 1 +std/encoding/xml/xml.go:558.17,564.3 2 1 +std/encoding/xml/xml.go:567.9,569.3 1 1 +std/encoding/xml/xml.go:571.14,575.18 3 1 +std/encoding/xml/xml.go:578.3,578.29 1 1 +std/encoding/xml/xml.go:575.18,577.4 1 1 +std/encoding/xml/xml.go:581.31,583.3 1 1 +std/encoding/xml/xml.go:585.11,588.33 2 1 +std/encoding/xml/xml.go:594.3,595.32 2 1 +std/encoding/xml/xml.go:598.3,598.15 1 1 +std/encoding/xml/xml.go:602.3,602.31 1 1 +std/encoding/xml/xml.go:604.11,607.33 2 1 +std/encoding/xml/xml.go:613.3,616.7 4 1 +std/encoding/xml/xml.go:626.3,629.22 3 1 +std/encoding/xml/xml.go:653.3,653.37 1 1 +std/encoding/xml/xml.go:655.11,657.32 1 1 +std/encoding/xml/xml.go:660.3,660.12 1 1 +std/encoding/xml/xml.go:714.3,718.7 5 1 +std/encoding/xml/xml.go:772.3,772.39 1 1 +std/encoding/xml/xml.go:588.33,589.20 1 1 +std/encoding/xml/xml.go:592.4,592.21 1 1 +std/encoding/xml/xml.go:589.20,591.5 1 1 +std/encoding/xml/xml.go:595.32,597.4 1 0 +std/encoding/xml/xml.go:598.15,601.4 2 1 +std/encoding/xml/xml.go:607.33,608.20 1 1 +std/encoding/xml/xml.go:611.4,611.21 1 1 +std/encoding/xml/xml.go:608.20,610.5 1 1 +std/encoding/xml/xml.go:616.7,617.33 1 1 +std/encoding/xml/xml.go:620.4,621.29 2 1 +std/encoding/xml/xml.go:624.4,624.10 1 1 +std/encoding/xml/xml.go:617.33,619.5 1 1 +std/encoding/xml/xml.go:621.29,622.10 1 1 +std/encoding/xml/xml.go:629.22,632.33 3 1 +std/encoding/xml/xml.go:636.4,637.89 2 1 +std/encoding/xml/xml.go:632.33,635.5 2 1 +std/encoding/xml/xml.go:637.89,638.31 1 1 +std/encoding/xml/xml.go:642.5,643.19 2 1 +std/encoding/xml/xml.go:647.5,647.20 1 1 +std/encoding/xml/xml.go:650.5,650.27 1 1 +std/encoding/xml/xml.go:638.31,641.6 2 1 +std/encoding/xml/xml.go:643.19,646.6 2 1 +std/encoding/xml/xml.go:647.20,648.69 1 1 +std/encoding/xml/xml.go:657.32,659.4 1 1 +std/encoding/xml/xml.go:661.12,663.33 1 1 +std/encoding/xml/xml.go:666.4,666.16 1 1 +std/encoding/xml/xml.go:671.4,673.8 3 1 +std/encoding/xml/xml.go:688.4,690.29 3 1 +std/encoding/xml/xml.go:692.12,694.27 1 1 +std/encoding/xml/xml.go:704.4,705.19 2 1 +std/encoding/xml/xml.go:708.4,708.30 1 1 +std/encoding/xml/xml.go:663.33,665.5 1 1 +std/encoding/xml/xml.go:666.16,669.5 2 1 +std/encoding/xml/xml.go:673.8,674.34 1 1 +std/encoding/xml/xml.go:677.5,678.31 2 1 +std/encoding/xml/xml.go:686.5,686.19 1 1 +std/encoding/xml/xml.go:674.34,676.6 1 1 +std/encoding/xml/xml.go:678.31,679.18 1 1 +std/encoding/xml/xml.go:684.6,684.11 1 1 +std/encoding/xml/xml.go:679.18,683.7 2 1 +std/encoding/xml/xml.go:694.27,695.34 1 1 +std/encoding/xml/xml.go:698.5,698.25 1 1 +std/encoding/xml/xml.go:695.34,697.6 1 1 +std/encoding/xml/xml.go:698.25,701.6 2 1 +std/encoding/xml/xml.go:705.19,707.5 1 1 +std/encoding/xml/xml.go:718.7,719.33 1 1 +std/encoding/xml/xml.go:722.4,722.46 1 1 +std/encoding/xml/xml.go:726.4,727.11 2 1 +std/encoding/xml/xml.go:719.33,721.5 1 1 +std/encoding/xml/xml.go:722.46,723.10 1 1 +std/encoding/xml/xml.go:728.22,729.16 1 1 +std/encoding/xml/xml.go:731.22,731.22 0 1 +std/encoding/xml/xml.go:734.31,735.16 1 1 +std/encoding/xml/xml.go:737.34,738.12 1 1 +std/encoding/xml/xml.go:740.34,743.33 2 1 +std/encoding/xml/xml.go:757.5,761.9 3 1 +std/encoding/xml/xml.go:743.33,744.35 1 1 +std/encoding/xml/xml.go:747.6,747.19 1 1 +std/encoding/xml/xml.go:744.35,746.7 1 1 +std/encoding/xml/xml.go:747.19,748.30 1 1 +std/encoding/xml/xml.go:751.7,752.19 2 1 +std/encoding/xml/xml.go:748.30,750.8 1 1 +std/encoding/xml/xml.go:761.9,762.35 1 1 +std/encoding/xml/xml.go:765.6,765.44 1 1 +std/encoding/xml/xml.go:768.6,768.20 1 1 +std/encoding/xml/xml.go:762.35,764.7 1 1 +std/encoding/xml/xml.go:765.44,766.12 1 1 +std/encoding/xml/xml.go:783.32,784.19 1 1 +std/encoding/xml/xml.go:787.3,787.20 1 1 +std/encoding/xml/xml.go:784.19,786.4 1 1 +std/encoding/xml/xml.go:791.6,793.32 2 1 +std/encoding/xml/xml.go:796.3,796.15 1 1 +std/encoding/xml/xml.go:807.3,807.15 1 1 +std/encoding/xml/xml.go:810.3,813.35 3 1 +std/encoding/xml/xml.go:819.3,820.32 2 1 +std/encoding/xml/xml.go:823.3,823.15 1 1 +std/encoding/xml/xml.go:838.3,838.25 1 1 +std/encoding/xml/xml.go:793.32,795.4 1 1 +std/encoding/xml/xml.go:796.15,798.33 2 1 +std/encoding/xml/xml.go:801.4,801.16 1 1 +std/encoding/xml/xml.go:805.4,805.9 1 1 +std/encoding/xml/xml.go:798.33,800.5 1 1 +std/encoding/xml/xml.go:801.16,804.5 2 1 +std/encoding/xml/xml.go:807.15,808.9 1 1 +std/encoding/xml/xml.go:813.35,814.20 1 1 +std/encoding/xml/xml.go:817.4,817.21 1 1 +std/encoding/xml/xml.go:814.20,816.5 1 1 +std/encoding/xml/xml.go:820.32,822.4 1 0 +std/encoding/xml/xml.go:823.15,824.16 1 1 +std/encoding/xml/xml.go:828.4,829.26 2 1 +std/encoding/xml/xml.go:824.16,827.5 2 1 +std/encoding/xml/xml.go:830.9,833.19 3 1 +std/encoding/xml/xml.go:836.4,836.26 1 1 +std/encoding/xml/xml.go:833.19,835.5 1 1 +std/encoding/xml/xml.go:840.11,843.3 2 1 +std/encoding/xml/xml.go:847.36,849.9 2 1 +std/encoding/xml/xml.go:853.2,853.27 1 1 +std/encoding/xml/xml.go:857.2,857.14 1 1 +std/encoding/xml/xml.go:862.2,864.6 3 1 +std/encoding/xml/xml.go:878.2,878.22 1 1 +std/encoding/xml/xml.go:849.9,851.3 1 1 +std/encoding/xml/xml.go:853.27,855.3 1 1 +std/encoding/xml/xml.go:857.14,860.3 2 1 +std/encoding/xml/xml.go:864.6,866.10 2 1 +std/encoding/xml/xml.go:870.3,871.61 1 1 +std/encoding/xml/xml.go:866.10,868.4 1 1 +std/encoding/xml/xml.go:871.61,873.4 1 1 +std/encoding/xml/xml.go:873.9,875.9 2 1 +std/encoding/xml/xml.go:882.27,883.6 1 1 +std/encoding/xml/xml.go:883.6,885.10 2 1 +std/encoding/xml/xml.go:888.3,888.12 1 1 +std/encoding/xml/xml.go:885.10,887.4 1 1 +std/encoding/xml/xml.go:889.30,889.30 0 1 +std/encoding/xml/xml.go:890.11,892.10 2 1 +std/encoding/xml/xml.go:901.44,902.18 1 1 +std/encoding/xml/xml.go:905.2,905.21 1 1 +std/encoding/xml/xml.go:917.2,917.15 1 1 +std/encoding/xml/xml.go:920.2,921.16 2 1 +std/encoding/xml/xml.go:902.18,904.3 1 1 +std/encoding/xml/xml.go:905.21,908.3 2 1 +std/encoding/xml/xml.go:908.8,910.19 2 1 +std/encoding/xml/xml.go:913.3,913.21 1 1 +std/encoding/xml/xml.go:910.19,912.4 1 1 +std/encoding/xml/xml.go:913.21,915.4 1 1 +std/encoding/xml/xml.go:917.15,919.3 1 1 +std/encoding/xml/xml.go:927.39,929.2 1 1 +std/encoding/xml/xml.go:933.37,935.21 2 1 +std/encoding/xml/xml.go:938.2,938.10 1 1 +std/encoding/xml/xml.go:935.21,937.3 1 1 +std/encoding/xml/xml.go:945.48,946.27 1 1 +std/encoding/xml/xml.go:951.2,951.8 1 1 +std/encoding/xml/xml.go:946.27,947.22 1 1 +std/encoding/xml/xml.go:947.22,949.4 1 1 +std/encoding/xml/xml.go:955.34,956.15 1 1 +std/encoding/xml/xml.go:959.2,960.12 2 1 +std/encoding/xml/xml.go:956.15,958.3 1 1 +std/encoding/xml/xml.go:975.54,980.6 4 1 +std/encoding/xml/xml.go:1118.2,1123.19 4 1 +std/encoding/xml/xml.go:1136.2,1136.13 1 1 +std/encoding/xml/xml.go:980.6,982.10 2 1 +std/encoding/xml/xml.go:994.3,994.41 1 1 +std/encoding/xml/xml.go:1004.3,1004.25 1 1 +std/encoding/xml/xml.go:1012.3,1012.37 1 1 +std/encoding/xml/xml.go:1015.3,1015.25 1 1 +std/encoding/xml/xml.go:1108.3,1108.16 1 1 +std/encoding/xml/xml.go:1116.3,1116.17 1 1 +std/encoding/xml/xml.go:982.10,983.13 1 1 +std/encoding/xml/xml.go:989.4,989.15 1 1 +std/encoding/xml/xml.go:983.13,984.24 1 1 +std/encoding/xml/xml.go:987.5,987.15 1 1 +std/encoding/xml/xml.go:984.24,986.6 1 1 +std/encoding/xml/xml.go:994.41,995.13 1 1 +std/encoding/xml/xml.go:999.4,1000.14 2 1 +std/encoding/xml/xml.go:995.13,997.16 2 1 +std/encoding/xml/xml.go:1004.25,1005.18 1 1 +std/encoding/xml/xml.go:1009.4,1010.15 2 1 +std/encoding/xml/xml.go:1005.18,1008.5 2 1 +std/encoding/xml/xml.go:1012.37,1013.15 1 1 +std/encoding/xml/xml.go:1015.25,1026.33 6 1 +std/encoding/xml/xml.go:1029.4,1029.16 1 1 +std/encoding/xml/xml.go:1089.4,1089.16 1 1 +std/encoding/xml/xml.go:1095.4,1095.17 1 1 +std/encoding/xml/xml.go:1099.4,1100.30 2 1 +std/encoding/xml/xml.go:1103.4,1104.14 2 1 +std/encoding/xml/xml.go:1026.33,1028.5 1 1 +std/encoding/xml/xml.go:1029.16,1031.34 2 1 +std/encoding/xml/xml.go:1034.5,1035.17 2 1 +std/encoding/xml/xml.go:1042.5,1045.41 2 1 +std/encoding/xml/xml.go:1051.5,1051.17 1 1 +std/encoding/xml/xml.go:1031.34,1033.6 1 1 +std/encoding/xml/xml.go:1035.17,1038.35 3 1 +std/encoding/xml/xml.go:1038.35,1040.7 1 1 +std/encoding/xml/xml.go:1045.41,1047.35 2 1 +std/encoding/xml/xml.go:1047.35,1049.7 1 1 +std/encoding/xml/xml.go:1051.17,1053.6 1 1 +std/encoding/xml/xml.go:1053.11,1057.44 4 1 +std/encoding/xml/xml.go:1057.44,1060.7 2 1 +std/encoding/xml/xml.go:1062.10,1064.22 2 1 +std/encoding/xml/xml.go:1069.5,1069.34 1 1 +std/encoding/xml/xml.go:1072.5,1072.17 1 1 +std/encoding/xml/xml.go:1064.22,1065.22 1 1 +std/encoding/xml/xml.go:1065.22,1067.7 1 1 +std/encoding/xml/xml.go:1069.34,1071.6 1 0 +std/encoding/xml/xml.go:1072.17,1074.6 1 1 +std/encoding/xml/xml.go:1074.11,1077.22 3 1 +std/encoding/xml/xml.go:1077.22,1079.33 2 1 +std/encoding/xml/xml.go:1079.33,1082.8 2 1 +std/encoding/xml/xml.go:1082.13,1082.33 1 1 +std/encoding/xml/xml.go:1082.33,1084.8 1 1 +std/encoding/xml/xml.go:1089.16,1093.19 4 1 +std/encoding/xml/xml.go:1095.17,1097.19 2 1 +std/encoding/xml/xml.go:1100.30,1102.5 1 1 +std/encoding/xml/xml.go:1108.16,1110.4 1 1 +std/encoding/xml/xml.go:1110.9,1110.37 1 1 +std/encoding/xml/xml.go:1110.38,1112.4 0 1 +std/encoding/xml/xml.go:1112.9,1114.4 1 1 +std/encoding/xml/xml.go:1123.19,1125.39 2 1 +std/encoding/xml/xml.go:1129.3,1130.29 2 1 +std/encoding/xml/xml.go:1125.39,1128.4 2 1 +std/encoding/xml/xml.go:1130.29,1133.4 2 1 +std/encoding/xml/xml.go:1142.48,1149.2 1 1 +std/encoding/xml/xml.go:1153.49,1155.9 2 1 +std/encoding/xml/xml.go:1158.2,1159.11 2 1 +std/encoding/xml/xml.go:1165.2,1165.19 1 1 +std/encoding/xml/xml.go:1155.9,1157.3 1 1 +std/encoding/xml/xml.go:1159.11,1161.3 1 1 +std/encoding/xml/xml.go:1161.8,1164.3 2 1 +std/encoding/xml/xml.go:1171.46,1173.19 2 1 +std/encoding/xml/xml.go:1178.2,1179.16 2 1 +std/encoding/xml/xml.go:1183.2,1183.24 1 1 +std/encoding/xml/xml.go:1173.19,1175.3 1 1 +std/encoding/xml/xml.go:1179.16,1182.3 2 1 +std/encoding/xml/xml.go:1189.40,1191.31 2 1 +std/encoding/xml/xml.go:1194.2,1194.41 1 1 +std/encoding/xml/xml.go:1198.2,1200.6 2 1 +std/encoding/xml/xml.go:1210.2,1210.13 1 1 +std/encoding/xml/xml.go:1191.31,1193.3 1 1 +std/encoding/xml/xml.go:1194.41,1197.3 2 1 +std/encoding/xml/xml.go:1200.6,1201.32 1 1 +std/encoding/xml/xml.go:1204.3,1204.42 1 1 +std/encoding/xml/xml.go:1208.3,1208.21 1 1 +std/encoding/xml/xml.go:1201.32,1203.4 1 1 +std/encoding/xml/xml.go:1204.42,1206.9 2 1 +std/encoding/xml/xml.go:1213.30,1218.2 1 1 +std/encoding/xml/xml.go:1220.28,1221.17 1 1 +std/encoding/xml/xml.go:1224.2,1225.35 2 1 +std/encoding/xml/xml.go:1228.2,1228.27 1 1 +std/encoding/xml/xml.go:1231.2,1231.17 1 1 +std/encoding/xml/xml.go:1241.2,1241.13 1 1 +std/encoding/xml/xml.go:1221.17,1223.3 1 1 +std/encoding/xml/xml.go:1225.35,1227.3 1 1 +std/encoding/xml/xml.go:1228.27,1230.3 1 1 +std/encoding/xml/xml.go:1231.17,1234.36 3 1 +std/encoding/xml/xml.go:1237.3,1237.54 1 1 +std/encoding/xml/xml.go:1234.36,1236.4 1 1 +std/encoding/xml/xml.go:1237.54,1239.4 1 0 +std/encoding/xml/xml.go:1244.34,1245.17 1 1 +std/encoding/xml/xml.go:1248.2,1249.35 2 1 +std/encoding/xml/xml.go:1252.2,1252.27 1 1 +std/encoding/xml/xml.go:1255.2,1255.17 1 1 +std/encoding/xml/xml.go:1265.2,1265.13 1 1 +std/encoding/xml/xml.go:1245.17,1247.3 1 1 +std/encoding/xml/xml.go:1249.35,1251.3 1 1 +std/encoding/xml/xml.go:1252.27,1254.3 1 1 +std/encoding/xml/xml.go:1255.17,1258.36 3 1 +std/encoding/xml/xml.go:1261.3,1261.54 1 1 +std/encoding/xml/xml.go:1258.36,1260.4 1 1 +std/encoding/xml/xml.go:1261.54,1263.4 1 0 +std/encoding/xml/xml.go:1894.46,1896.2 1 1 +std/encoding/xml/xml.go:1901.66,1904.26 3 1 +std/encoding/xml/xml.go:1942.2,1943.12 2 1 +std/encoding/xml/xml.go:1904.26,1907.12 3 1 +std/encoding/xml/xml.go:1934.3,1934.55 1 1 +std/encoding/xml/xml.go:1937.3,1937.41 1 1 +std/encoding/xml/xml.go:1940.3,1940.11 1 1 +std/encoding/xml/xml.go:1908.12,1909.17 1 1 +std/encoding/xml/xml.go:1910.13,1911.17 1 1 +std/encoding/xml/xml.go:1912.12,1913.16 1 1 +std/encoding/xml/xml.go:1914.12,1915.15 1 1 +std/encoding/xml/xml.go:1916.12,1917.15 1 1 +std/encoding/xml/xml.go:1918.13,1919.16 1 1 +std/encoding/xml/xml.go:1920.13,1921.22 1 1 +std/encoding/xml/xml.go:1924.4,1924.15 1 1 +std/encoding/xml/xml.go:1925.13,1926.15 1 1 +std/encoding/xml/xml.go:1927.11,1928.61 1 1 +std/encoding/xml/xml.go:1932.4,1932.12 1 1 +std/encoding/xml/xml.go:1921.22,1922.13 1 1 +std/encoding/xml/xml.go:1928.61,1930.10 2 1 +std/encoding/xml/xml.go:1934.55,1936.4 1 0 +std/encoding/xml/xml.go:1937.41,1939.4 1 0 +std/encoding/xml/xml.go:1948.42,1951.26 3 1 +std/encoding/xml/xml.go:1982.2,1982.25 1 1 +std/encoding/xml/xml.go:1951.26,1954.12 3 1 +std/encoding/xml/xml.go:1978.3,1980.11 3 1 +std/encoding/xml/xml.go:1955.12,1956.17 1 1 +std/encoding/xml/xml.go:1957.13,1958.17 1 1 +std/encoding/xml/xml.go:1959.12,1960.16 1 1 +std/encoding/xml/xml.go:1961.12,1962.15 1 1 +std/encoding/xml/xml.go:1963.12,1964.15 1 1 +std/encoding/xml/xml.go:1965.13,1966.16 1 1 +std/encoding/xml/xml.go:1967.13,1968.15 1 1 +std/encoding/xml/xml.go:1969.13,1970.15 1 1 +std/encoding/xml/xml.go:1971.11,1972.61 1 1 +std/encoding/xml/xml.go:1976.4,1976.12 1 1 +std/encoding/xml/xml.go:1972.61,1974.10 2 0 +std/encoding/xml/xml.go:1988.36,1990.2 1 1 +std/encoding/xml/xml.go:2000.45,2001.17 1 1 +std/encoding/xml/xml.go:2004.2,2004.47 1 1 +std/encoding/xml/xml.go:2007.2,2007.6 1 1 +std/encoding/xml/xml.go:2026.2,2027.12 2 1 +std/encoding/xml/xml.go:2001.17,2003.3 1 1 +std/encoding/xml/xml.go:2004.47,2006.3 1 0 +std/encoding/xml/xml.go:2007.6,2009.42 2 1 +std/encoding/xml/xml.go:2024.3,2024.12 1 1 +std/encoding/xml/xml.go:2009.42,2011.44 1 1 +std/encoding/xml/xml.go:2014.4,2014.50 1 1 +std/encoding/xml/xml.go:2017.4,2017.22 1 1 +std/encoding/xml/xml.go:2011.44,2013.5 1 0 +std/encoding/xml/xml.go:2014.50,2016.5 1 0 +std/encoding/xml/xml.go:2018.9,2019.40 1 1 +std/encoding/xml/xml.go:2022.4,2022.9 1 1 +std/encoding/xml/xml.go:2019.40,2021.5 1 0 +std/encoding/xml/xml.go:2032.39,2037.15 3 1 +std/encoding/xml/xml.go:2040.2,2041.13 2 1 +std/encoding/xml/xml.go:2044.2,2044.33 1 1 +std/encoding/xml/xml.go:2047.2,2048.15 2 1 +std/encoding/xml/xml.go:2051.2,2051.21 1 1 +std/encoding/xml/xml.go:2037.15,2039.3 1 1 +std/encoding/xml/xml.go:2041.13,2043.3 1 0 +std/encoding/xml/xml.go:2044.33,2046.3 1 1 +std/encoding/xml/xml.go:2048.15,2050.3 1 0 diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index fda532c34d5bb2..56347e1212c27b 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -347,8 +347,7 @@ type MyMarshalerTestErrorNotClosed struct { func (m *MyMarshalerTestErrorNotClosed) MarshalXML(e *Encoder, start StartElement) error { e.EncodeToken(start) - e.EncodeToken(CharData([]byte("hello world"))) - //e.EncodeToken(EndElement{start.Name}) + e.EncodeToken(CharData("hello world")) return nil } @@ -1706,11 +1705,6 @@ func TestMarshal(t *testing.T) { if test.UnmarshalOnly { continue } - //if idx == 32 { - // fmt.Printf("\nidx: %v\ntest: %v\n", idx, test) - //} else{ - // continue - //} t.Run(fmt.Sprintf("%d", idx), func(t *testing.T) { data, err := Marshal(test.Value) diff --git a/src/encoding/xml/playgroud_test.go b/src/encoding/xml/playgroud_test.go new file mode 100644 index 00000000000000..eb064e77fc7829 --- /dev/null +++ b/src/encoding/xml/playgroud_test.go @@ -0,0 +1,40 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package xml_test + +//func Example_textMarshalXML2() { +// blob := ` +// +// small +// regular +// large +// unrecognized +// small +// normal +// small +// large +// ` +// var inventory struct { +// Sizes []Size `xml:"size"` +// } +// if err := xml.Unmarshal([]byte(blob), &inventory); err != nil { +// log.Fatal(err) +// } +// +// counts := make(map[Size]int) +// for _, size := range inventory.Sizes { +// counts[size] += 1 +// } +// +// //fmt.Fprintf(os.Stderr, "Inventory Counts:\n* Small: %d\n* Large: %d\n* Unrecognized: %d\n", +// // counts[Small], counts[Large], counts[Unrecognized]) +// +// +// // Output: +// // Inventory Counts: +// // * Small: 3 +// // * Large: 2 +// // * Unrecognized: 3 +//} From a828f1f89c732f0050589177d28993051d854fba Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Sat, 17 Oct 2020 12:58:46 -0400 Subject: [PATCH 32/32] delete test files --- src/encoding/xml/README.md | 48 -- src/encoding/xml/coverage.out | 1121 ---------------------------- src/encoding/xml/playgroud_test.go | 40 - 3 files changed, 1209 deletions(-) delete mode 100644 src/encoding/xml/README.md delete mode 100644 src/encoding/xml/coverage.out delete mode 100644 src/encoding/xml/playgroud_test.go diff --git a/src/encoding/xml/README.md b/src/encoding/xml/README.md deleted file mode 100644 index 201b21d0ac114b..00000000000000 --- a/src/encoding/xml/README.md +++ /dev/null @@ -1,48 +0,0 @@ -## steps to compile go -roughly followed this guide -https://github.com/golang/go/wiki/WindowsBuild -and ran the executable - -install MinGW latest -GCC for Windows 64 & 32 bits -http://mingw-w64.org/doku.php - -https://jmeubank.github.io/tdm-gcc/ - -## Go testing -go test -coverprofile=coverage.out ./... -go tool cover -func=coverage.out -go tool cover -html=coverage.out - -## encoding/xml notes - -### detailed test coverage -go test -coverprofile=coverage.out -go tool cover -func=coverage.out -go tool cover -html=coverage.out - -go test -coverprofile=coverage.out && go tool cover -html=coverage.out - -### top-level coverage -go test - -### run specific test -go test -v -run TestDecodeEOF - -### TODO -0. modify animal custom marshaller example and add namespaces - (see if test coverage luckily goes up) -1. marshal_test.go -2. add logs and look for close-by corner cases in the big loop -3. bring coverage up to 95% - -reach 95% code coverage -ticket creator asked for -> more tests for name spaces, custom marshalers, custom -unmarshalers, and the interaction between all those - -## Links -https://go-review.googlesource.com/dashboard/self -https://golang.org/doc/contribute.html -https://github.com/golang/go/issues/6094 -https://golang.org/pkg/encoding/xml/#example_Encoder \ No newline at end of file diff --git a/src/encoding/xml/coverage.out b/src/encoding/xml/coverage.out deleted file mode 100644 index 05708a1fe4ee2c..00000000000000 --- a/src/encoding/xml/coverage.out +++ /dev/null @@ -1,1121 +0,0 @@ -mode: set -std/encoding/xml/marshal.go:79.45,81.49 2 1 -std/encoding/xml/marshal.go:84.2,84.23 1 1 -std/encoding/xml/marshal.go:81.49,83.3 1 1 -std/encoding/xml/marshal.go:125.74,129.38 4 1 -std/encoding/xml/marshal.go:132.2,132.23 1 1 -std/encoding/xml/marshal.go:129.38,131.3 1 1 -std/encoding/xml/marshal.go:141.39,145.2 3 1 -std/encoding/xml/marshal.go:150.51,153.2 2 1 -std/encoding/xml/marshal.go:161.49,163.16 2 1 -std/encoding/xml/marshal.go:166.2,166.22 1 1 -std/encoding/xml/marshal.go:163.16,165.3 1 1 -std/encoding/xml/marshal.go:176.76,178.16 2 1 -std/encoding/xml/marshal.go:181.2,181.22 1 1 -std/encoding/xml/marshal.go:178.16,180.3 1 1 -std/encoding/xml/marshal.go:202.48,205.23 2 1 -std/encoding/xml/marshal.go:254.2,254.29 1 1 -std/encoding/xml/marshal.go:206.20,207.42 1 1 -std/encoding/xml/marshal.go:210.18,211.44 1 1 -std/encoding/xml/marshal.go:214.16,215.26 1 1 -std/encoding/xml/marshal.go:216.15,217.36 1 1 -std/encoding/xml/marshal.go:220.3,223.30 4 1 -std/encoding/xml/marshal.go:224.16,227.45 1 1 -std/encoding/xml/marshal.go:230.3,230.30 1 1 -std/encoding/xml/marshal.go:233.3,233.42 1 1 -std/encoding/xml/marshal.go:236.3,238.22 3 1 -std/encoding/xml/marshal.go:242.3,242.22 1 1 -std/encoding/xml/marshal.go:243.17,244.27 1 1 -std/encoding/xml/marshal.go:247.3,249.21 3 1 -std/encoding/xml/marshal.go:250.10,251.62 1 1 -std/encoding/xml/marshal.go:207.42,209.4 1 1 -std/encoding/xml/marshal.go:211.44,213.4 1 1 -std/encoding/xml/marshal.go:217.36,219.4 1 1 -std/encoding/xml/marshal.go:227.45,229.4 1 1 -std/encoding/xml/marshal.go:230.30,232.4 1 1 -std/encoding/xml/marshal.go:233.42,235.4 1 1 -std/encoding/xml/marshal.go:238.22,241.4 2 1 -std/encoding/xml/marshal.go:244.27,246.4 1 1 -std/encoding/xml/marshal.go:259.43,265.24 2 1 -std/encoding/xml/marshal.go:294.2,294.49 1 1 -std/encoding/xml/marshal.go:265.24,266.10 1 1 -std/encoding/xml/marshal.go:267.18,268.16 1 1 -std/encoding/xml/marshal.go:274.21,275.20 1 1 -std/encoding/xml/marshal.go:279.30,280.15 1 1 -std/encoding/xml/marshal.go:281.17,282.89 1 1 -std/encoding/xml/marshal.go:287.17,288.18 1 1 -std/encoding/xml/marshal.go:291.4,291.11 1 1 -std/encoding/xml/marshal.go:268.16,269.84 1 1 -std/encoding/xml/marshal.go:269.84,271.6 1 1 -std/encoding/xml/marshal.go:275.20,277.5 1 1 -std/encoding/xml/marshal.go:282.89,284.5 1 1 -std/encoding/xml/marshal.go:284.10,286.5 1 1 -std/encoding/xml/marshal.go:288.18,290.5 1 1 -std/encoding/xml/marshal.go:299.35,301.2 1 1 -std/encoding/xml/marshal.go:320.55,321.47 1 1 -std/encoding/xml/marshal.go:329.2,329.19 1 1 -std/encoding/xml/marshal.go:334.2,334.25 1 1 -std/encoding/xml/marshal.go:341.2,342.49 2 1 -std/encoding/xml/marshal.go:345.2,345.78 1 1 -std/encoding/xml/marshal.go:348.2,348.38 1 1 -std/encoding/xml/marshal.go:352.2,352.28 1 1 -std/encoding/xml/marshal.go:362.2,373.15 9 1 -std/encoding/xml/marshal.go:321.47,323.3 1 1 -std/encoding/xml/marshal.go:329.19,331.3 1 1 -std/encoding/xml/marshal.go:334.25,337.3 2 1 -std/encoding/xml/marshal.go:342.49,344.3 1 1 -std/encoding/xml/marshal.go:345.78,347.3 1 1 -std/encoding/xml/marshal.go:348.38,351.3 1 1 -std/encoding/xml/marshal.go:352.28,354.26 1 1 -std/encoding/xml/marshal.go:354.26,355.68 1 1 -std/encoding/xml/marshal.go:355.68,357.10 2 1 -std/encoding/xml/marshal.go:377.51,380.2 2 1 -std/encoding/xml/marshal.go:382.32,384.2 1 1 -std/encoding/xml/marshal.go:386.31,387.26 1 1 -std/encoding/xml/marshal.go:387.26,390.19 3 1 -std/encoding/xml/marshal.go:393.3,393.29 1 1 -std/encoding/xml/marshal.go:390.19,391.9 1 1 -std/encoding/xml/marshal.go:405.104,406.60 1 1 -std/encoding/xml/marshal.go:410.2,410.20 1 1 -std/encoding/xml/marshal.go:413.2,413.70 1 1 -std/encoding/xml/marshal.go:420.2,420.67 1 1 -std/encoding/xml/marshal.go:427.2,431.57 3 1 -std/encoding/xml/marshal.go:434.2,434.19 1 1 -std/encoding/xml/marshal.go:442.2,442.61 1 1 -std/encoding/xml/marshal.go:445.2,445.19 1 1 -std/encoding/xml/marshal.go:453.2,453.92 1 1 -std/encoding/xml/marshal.go:462.2,463.16 2 1 -std/encoding/xml/marshal.go:473.2,475.26 2 1 -std/encoding/xml/marshal.go:489.2,489.44 1 1 -std/encoding/xml/marshal.go:492.2,492.28 1 1 -std/encoding/xml/marshal.go:501.2,501.30 1 1 -std/encoding/xml/marshal.go:522.2,522.45 1 1 -std/encoding/xml/marshal.go:526.2,526.34 1 1 -std/encoding/xml/marshal.go:538.2,538.16 1 1 -std/encoding/xml/marshal.go:542.2,542.47 1 1 -std/encoding/xml/marshal.go:546.2,546.29 1 1 -std/encoding/xml/marshal.go:406.60,408.3 1 1 -std/encoding/xml/marshal.go:410.20,412.3 1 1 -std/encoding/xml/marshal.go:413.70,415.3 1 1 -std/encoding/xml/marshal.go:420.67,421.18 1 1 -std/encoding/xml/marshal.go:424.3,424.19 1 1 -std/encoding/xml/marshal.go:421.18,423.4 1 1 -std/encoding/xml/marshal.go:431.57,433.3 1 0 -std/encoding/xml/marshal.go:434.19,436.63 2 1 -std/encoding/xml/marshal.go:436.63,438.4 1 1 -std/encoding/xml/marshal.go:442.61,444.3 1 1 -std/encoding/xml/marshal.go:445.19,447.67 2 1 -std/encoding/xml/marshal.go:447.67,449.4 1 0 -std/encoding/xml/marshal.go:453.92,454.40 1 1 -std/encoding/xml/marshal.go:459.3,459.13 1 1 -std/encoding/xml/marshal.go:454.40,455.77 1 1 -std/encoding/xml/marshal.go:455.77,457.5 1 0 -std/encoding/xml/marshal.go:463.16,465.3 1 1 -std/encoding/xml/marshal.go:475.26,478.3 2 1 -std/encoding/xml/marshal.go:478.8,478.33 1 1 -std/encoding/xml/marshal.go:478.33,480.25 2 1 -std/encoding/xml/marshal.go:480.25,482.4 1 1 -std/encoding/xml/marshal.go:482.9,484.59 2 1 -std/encoding/xml/marshal.go:484.59,486.5 1 1 -std/encoding/xml/marshal.go:489.44,491.3 1 1 -std/encoding/xml/marshal.go:492.28,494.17 2 1 -std/encoding/xml/marshal.go:497.3,497.26 1 1 -std/encoding/xml/marshal.go:494.17,496.4 1 1 -std/encoding/xml/marshal.go:501.30,503.29 2 1 -std/encoding/xml/marshal.go:506.3,508.54 2 1 -std/encoding/xml/marshal.go:512.3,512.51 1 1 -std/encoding/xml/marshal.go:516.3,517.57 2 1 -std/encoding/xml/marshal.go:503.29,504.12 1 1 -std/encoding/xml/marshal.go:508.54,509.12 1 1 -std/encoding/xml/marshal.go:512.51,513.12 1 0 -std/encoding/xml/marshal.go:517.57,519.4 1 1 -std/encoding/xml/marshal.go:522.45,524.3 1 0 -std/encoding/xml/marshal.go:526.34,528.3 1 1 -std/encoding/xml/marshal.go:528.8,530.18 2 1 -std/encoding/xml/marshal.go:530.18,532.4 1 0 -std/encoding/xml/marshal.go:532.9,532.22 1 1 -std/encoding/xml/marshal.go:532.22,534.4 1 1 -std/encoding/xml/marshal.go:534.9,536.4 1 1 -std/encoding/xml/marshal.go:538.16,540.3 1 1 -std/encoding/xml/marshal.go:542.47,544.3 1 0 -std/encoding/xml/marshal.go:550.88,551.68 1 1 -std/encoding/xml/marshal.go:562.2,562.19 1 1 -std/encoding/xml/marshal.go:576.2,576.68 1 1 -std/encoding/xml/marshal.go:585.2,585.19 1 1 -std/encoding/xml/marshal.go:598.2,598.20 1 1 -std/encoding/xml/marshal.go:607.2,607.78 1 1 -std/encoding/xml/marshal.go:617.2,617.28 1 1 -std/encoding/xml/marshal.go:622.2,623.16 2 1 -std/encoding/xml/marshal.go:626.2,626.14 1 1 -std/encoding/xml/marshal.go:629.2,630.12 2 1 -std/encoding/xml/marshal.go:551.68,553.17 2 0 -std/encoding/xml/marshal.go:556.3,556.28 1 0 -std/encoding/xml/marshal.go:559.3,559.13 1 0 -std/encoding/xml/marshal.go:553.17,555.4 1 0 -std/encoding/xml/marshal.go:556.28,558.4 1 0 -std/encoding/xml/marshal.go:562.19,564.67 2 1 -std/encoding/xml/marshal.go:564.67,566.18 2 1 -std/encoding/xml/marshal.go:569.4,569.29 1 1 -std/encoding/xml/marshal.go:572.4,572.14 1 1 -std/encoding/xml/marshal.go:566.18,568.5 1 0 -std/encoding/xml/marshal.go:569.29,571.5 1 1 -std/encoding/xml/marshal.go:576.68,578.17 2 1 -std/encoding/xml/marshal.go:581.3,582.13 2 1 -std/encoding/xml/marshal.go:578.17,580.4 1 0 -std/encoding/xml/marshal.go:585.19,587.67 2 1 -std/encoding/xml/marshal.go:587.67,589.18 2 0 -std/encoding/xml/marshal.go:592.4,593.14 2 0 -std/encoding/xml/marshal.go:589.18,591.5 1 0 -std/encoding/xml/marshal.go:599.38,600.18 1 1 -std/encoding/xml/marshal.go:603.3,603.19 1 1 -std/encoding/xml/marshal.go:600.18,602.4 1 1 -std/encoding/xml/marshal.go:607.78,609.26 2 1 -std/encoding/xml/marshal.go:614.3,614.13 1 1 -std/encoding/xml/marshal.go:609.26,610.67 1 1 -std/encoding/xml/marshal.go:610.67,612.5 1 0 -std/encoding/xml/marshal.go:617.28,620.3 2 1 -std/encoding/xml/marshal.go:623.16,625.3 1 1 -std/encoding/xml/marshal.go:626.14,628.3 1 1 -std/encoding/xml/marshal.go:635.97,639.26 2 1 -std/encoding/xml/marshal.go:652.2,652.14 1 1 -std/encoding/xml/marshal.go:639.26,642.3 2 0 -std/encoding/xml/marshal.go:642.8,642.45 1 1 -std/encoding/xml/marshal.go:642.45,645.3 2 1 -std/encoding/xml/marshal.go:645.8,645.29 1 1 -std/encoding/xml/marshal.go:645.29,647.3 1 0 -std/encoding/xml/marshal.go:647.8,651.3 1 1 -std/encoding/xml/marshal.go:656.77,663.16 4 1 -std/encoding/xml/marshal.go:668.2,668.21 1 1 -std/encoding/xml/marshal.go:671.2,672.12 2 1 -std/encoding/xml/marshal.go:663.16,665.3 1 1 -std/encoding/xml/marshal.go:668.21,670.3 1 1 -std/encoding/xml/marshal.go:676.94,677.45 1 1 -std/encoding/xml/marshal.go:680.2,681.16 2 1 -std/encoding/xml/marshal.go:684.2,685.31 2 1 -std/encoding/xml/marshal.go:677.45,679.3 1 0 -std/encoding/xml/marshal.go:681.16,683.3 1 0 -std/encoding/xml/marshal.go:689.57,690.28 1 1 -std/encoding/xml/marshal.go:694.2,701.28 6 1 -std/encoding/xml/marshal.go:708.2,708.34 1 1 -std/encoding/xml/marshal.go:723.2,724.12 2 1 -std/encoding/xml/marshal.go:690.28,692.3 1 1 -std/encoding/xml/marshal.go:701.28,705.3 3 1 -std/encoding/xml/marshal.go:708.34,710.23 2 1 -std/encoding/xml/marshal.go:713.3,714.23 2 1 -std/encoding/xml/marshal.go:718.3,721.19 4 1 -std/encoding/xml/marshal.go:710.23,711.12 1 1 -std/encoding/xml/marshal.go:714.23,717.4 2 1 -std/encoding/xml/marshal.go:727.45,728.22 1 1 -std/encoding/xml/marshal.go:731.2,731.59 1 1 -std/encoding/xml/marshal.go:734.2,734.47 1 1 -std/encoding/xml/marshal.go:740.2,748.12 8 1 -std/encoding/xml/marshal.go:728.22,730.3 1 1 -std/encoding/xml/marshal.go:731.59,733.3 1 1 -std/encoding/xml/marshal.go:734.47,735.30 1 1 -std/encoding/xml/marshal.go:738.3,738.150 1 1 -std/encoding/xml/marshal.go:735.30,737.4 1 1 -std/encoding/xml/marshal.go:751.94,752.20 1 1 -std/encoding/xml/marshal.go:783.2,783.44 1 1 -std/encoding/xml/marshal.go:753.78,754.52 1 1 -std/encoding/xml/marshal.go:755.100,756.54 1 1 -std/encoding/xml/marshal.go:757.40,758.80 1 1 -std/encoding/xml/marshal.go:759.22,760.32 1 1 -std/encoding/xml/marshal.go:761.20,762.50 1 1 -std/encoding/xml/marshal.go:763.21,764.41 1 1 -std/encoding/xml/marshal.go:768.3,769.20 2 1 -std/encoding/xml/marshal.go:775.3,775.24 1 1 -std/encoding/xml/marshal.go:776.21,777.41 1 1 -std/encoding/xml/marshal.go:781.3,781.30 1 1 -std/encoding/xml/marshal.go:764.41,765.9 1 0 -std/encoding/xml/marshal.go:769.20,771.4 1 0 -std/encoding/xml/marshal.go:771.9,774.4 2 1 -std/encoding/xml/marshal.go:777.41,778.9 1 0 -std/encoding/xml/marshal.go:792.47,793.65 1 1 -std/encoding/xml/marshal.go:799.2,799.11 1 1 -std/encoding/xml/marshal.go:793.65,794.17 1 1 -std/encoding/xml/marshal.go:797.3,797.17 1 1 -std/encoding/xml/marshal.go:794.17,796.4 1 1 -std/encoding/xml/marshal.go:802.75,804.30 2 1 -std/encoding/xml/marshal.go:953.2,954.29 2 1 -std/encoding/xml/marshal.go:804.30,806.29 2 1 -std/encoding/xml/marshal.go:809.3,810.20 2 1 -std/encoding/xml/marshal.go:816.3,816.30 1 1 -std/encoding/xml/marshal.go:949.3,949.56 1 1 -std/encoding/xml/marshal.go:806.29,807.12 1 1 -std/encoding/xml/marshal.go:810.20,813.12 1 1 -std/encoding/xml/marshal.go:817.26,819.35 2 1 -std/encoding/xml/marshal.go:822.4,822.48 1 1 -std/encoding/xml/marshal.go:825.4,825.68 1 1 -std/encoding/xml/marshal.go:835.4,835.20 1 1 -std/encoding/xml/marshal.go:849.4,851.21 3 1 -std/encoding/xml/marshal.go:879.4,879.12 1 1 -std/encoding/xml/marshal.go:881.17,882.48 1 1 -std/encoding/xml/marshal.go:885.4,887.96 3 1 -std/encoding/xml/marshal.go:890.4,890.21 1 1 -std/encoding/xml/marshal.go:893.4,897.13 5 1 -std/encoding/xml/marshal.go:915.4,915.16 1 1 -std/encoding/xml/marshal.go:918.4,918.16 1 1 -std/encoding/xml/marshal.go:922.4,923.12 2 1 -std/encoding/xml/marshal.go:925.18,928.31 3 1 -std/encoding/xml/marshal.go:937.34,938.48 1 1 -std/encoding/xml/marshal.go:941.4,941.41 1 1 -std/encoding/xml/marshal.go:819.35,821.5 1 1 -std/encoding/xml/marshal.go:822.48,824.5 1 0 -std/encoding/xml/marshal.go:825.68,827.19 2 1 -std/encoding/xml/marshal.go:830.5,830.41 1 1 -std/encoding/xml/marshal.go:833.5,833.13 1 1 -std/encoding/xml/marshal.go:827.19,829.6 1 0 -std/encoding/xml/marshal.go:830.41,832.6 1 0 -std/encoding/xml/marshal.go:835.20,837.69 2 1 -std/encoding/xml/marshal.go:837.69,839.20 2 0 -std/encoding/xml/marshal.go:842.6,842.42 1 0 -std/encoding/xml/marshal.go:845.6,845.14 1 0 -std/encoding/xml/marshal.go:839.20,841.7 1 0 -std/encoding/xml/marshal.go:842.42,844.7 1 0 -std/encoding/xml/marshal.go:852.80,853.81 1 1 -std/encoding/xml/marshal.go:856.102,857.83 1 1 -std/encoding/xml/marshal.go:860.42,861.108 1 1 -std/encoding/xml/marshal.go:864.22,865.79 1 1 -std/encoding/xml/marshal.go:868.24,869.56 1 1 -std/encoding/xml/marshal.go:872.23,873.48 1 1 -std/encoding/xml/marshal.go:853.81,855.6 1 0 -std/encoding/xml/marshal.go:857.83,859.6 1 0 -std/encoding/xml/marshal.go:861.108,863.6 1 0 -std/encoding/xml/marshal.go:865.79,867.6 1 0 -std/encoding/xml/marshal.go:869.56,871.6 1 0 -std/encoding/xml/marshal.go:873.48,874.42 1 1 -std/encoding/xml/marshal.go:874.42,876.7 1 0 -std/encoding/xml/marshal.go:882.48,884.5 1 0 -std/encoding/xml/marshal.go:887.96,889.5 1 1 -std/encoding/xml/marshal.go:890.21,891.13 1 1 -std/encoding/xml/marshal.go:898.24,902.18 4 1 -std/encoding/xml/marshal.go:905.23,909.18 4 1 -std/encoding/xml/marshal.go:912.12,913.26 1 0 -std/encoding/xml/marshal.go:902.18,904.6 1 1 -std/encoding/xml/marshal.go:909.18,911.6 1 1 -std/encoding/xml/marshal.go:915.16,917.5 1 1 -std/encoding/xml/marshal.go:918.16,921.5 1 1 -std/encoding/xml/marshal.go:929.16,931.13 2 0 -std/encoding/xml/marshal.go:932.16,934.13 2 1 -std/encoding/xml/marshal.go:938.48,940.5 1 0 -std/encoding/xml/marshal.go:941.41,942.82 1 1 -std/encoding/xml/marshal.go:942.82,943.65 1 1 -std/encoding/xml/marshal.go:943.65,945.7 1 0 -std/encoding/xml/marshal.go:949.56,951.4 1 1 -std/encoding/xml/marshal.go:958.44,961.2 2 1 -std/encoding/xml/marshal.go:963.47,964.46 1 1 -std/encoding/xml/marshal.go:967.2,967.20 1 1 -std/encoding/xml/marshal.go:975.2,975.18 1 1 -std/encoding/xml/marshal.go:980.2,980.23 1 1 -std/encoding/xml/marshal.go:983.2,983.23 1 1 -std/encoding/xml/marshal.go:988.2,988.20 1 1 -std/encoding/xml/marshal.go:964.46,966.3 1 1 -std/encoding/xml/marshal.go:967.20,969.19 2 1 -std/encoding/xml/marshal.go:973.3,973.23 1 1 -std/encoding/xml/marshal.go:969.19,972.4 2 1 -std/encoding/xml/marshal.go:975.18,977.3 1 1 -std/encoding/xml/marshal.go:977.8,979.3 1 1 -std/encoding/xml/marshal.go:980.23,982.3 1 0 -std/encoding/xml/marshal.go:983.23,984.32 1 1 -std/encoding/xml/marshal.go:984.32,986.4 1 1 -std/encoding/xml/marshal.go:988.20,991.3 2 1 -std/encoding/xml/marshal.go:1002.52,1004.62 2 1 -std/encoding/xml/marshal.go:1009.2,1009.45 1 1 -std/encoding/xml/marshal.go:1014.2,1015.12 2 1 -std/encoding/xml/marshal.go:1004.62,1005.39 1 1 -std/encoding/xml/marshal.go:1005.39,1006.9 1 0 -std/encoding/xml/marshal.go:1009.45,1010.63 1 1 -std/encoding/xml/marshal.go:1010.63,1012.4 1 0 -std/encoding/xml/marshal.go:1019.52,1020.36 1 1 -std/encoding/xml/marshal.go:1025.2,1026.12 2 1 -std/encoding/xml/marshal.go:1020.36,1021.86 1 1 -std/encoding/xml/marshal.go:1021.86,1023.4 1 0 -std/encoding/xml/marshal.go:1035.47,1037.2 1 1 -std/encoding/xml/marshal.go:1039.41,1040.18 1 1 -std/encoding/xml/marshal.go:1054.2,1054.14 1 0 -std/encoding/xml/marshal.go:1041.65,1042.22 1 1 -std/encoding/xml/marshal.go:1043.20,1044.19 1 1 -std/encoding/xml/marshal.go:1045.78,1046.22 1 1 -std/encoding/xml/marshal.go:1047.100,1048.23 1 1 -std/encoding/xml/marshal.go:1049.40,1050.24 1 1 -std/encoding/xml/marshal.go:1051.38,1052.19 1 1 -std/encoding/xml/read.go:132.50,134.2 1 1 -std/encoding/xml/read.go:138.47,140.2 1 1 -std/encoding/xml/read.go:146.75,148.31 2 1 -std/encoding/xml/read.go:151.2,151.39 1 1 -std/encoding/xml/read.go:148.31,150.3 1 1 -std/encoding/xml/read.go:157.40,157.60 1 1 -std/encoding/xml/read.go:191.43,193.20 2 1 -std/encoding/xml/read.go:196.2,196.31 1 1 -std/encoding/xml/read.go:193.20,195.3 1 1 -std/encoding/xml/read.go:201.82,208.16 5 1 -std/encoding/xml/read.go:213.2,213.17 1 1 -std/encoding/xml/read.go:217.2,217.12 1 1 -std/encoding/xml/read.go:208.16,211.3 2 1 -std/encoding/xml/read.go:213.17,215.3 1 1 -std/encoding/xml/read.go:223.78,226.16 3 1 -std/encoding/xml/read.go:242.2,242.31 1 1 -std/encoding/xml/read.go:226.16,228.17 2 1 -std/encoding/xml/read.go:231.3,231.24 1 1 -std/encoding/xml/read.go:228.17,230.4 1 0 -std/encoding/xml/read.go:232.17,233.18 1 1 -std/encoding/xml/read.go:236.21,237.11 1 0 -std/encoding/xml/read.go:238.19,239.11 1 1 -std/encoding/xml/read.go:233.18,235.5 1 1 -std/encoding/xml/read.go:246.69,247.31 1 1 -std/encoding/xml/read.go:253.2,253.70 1 1 -std/encoding/xml/read.go:258.2,258.19 1 1 -std/encoding/xml/read.go:266.2,266.70 1 1 -std/encoding/xml/read.go:271.2,271.19 1 1 -std/encoding/xml/read.go:278.2,278.85 1 1 -std/encoding/xml/read.go:292.2,292.28 1 1 -std/encoding/xml/read.go:297.2,297.43 1 1 -std/encoding/xml/read.go:247.31,248.18 1 1 -std/encoding/xml/read.go:251.3,251.19 1 1 -std/encoding/xml/read.go:248.18,250.4 1 1 -std/encoding/xml/read.go:253.70,257.3 1 0 -std/encoding/xml/read.go:258.19,260.69 2 1 -std/encoding/xml/read.go:260.69,262.4 1 1 -std/encoding/xml/read.go:266.70,270.3 1 0 -std/encoding/xml/read.go:271.19,273.69 2 1 -std/encoding/xml/read.go:273.69,275.4 1 1 -std/encoding/xml/read.go:278.85,285.61 3 1 -std/encoding/xml/read.go:289.3,289.13 1 1 -std/encoding/xml/read.go:285.61,288.4 2 0 -std/encoding/xml/read.go:292.28,295.3 2 1 -std/encoding/xml/read.go:308.75,312.18 3 1 -std/encoding/xml/read.go:327.2,327.53 1 1 -std/encoding/xml/read.go:334.2,334.31 1 1 -std/encoding/xml/read.go:341.2,341.66 1 1 -std/encoding/xml/read.go:347.2,348.19 2 1 -std/encoding/xml/read.go:355.2,356.70 2 1 -std/encoding/xml/read.go:360.2,361.19 2 1 -std/encoding/xml/read.go:368.2,383.28 3 1 -std/encoding/xml/read.go:527.1,528.6 1 1 -std/encoding/xml/read.go:579.2,584.102 2 1 -std/encoding/xml/read.go:592.2,592.46 1 1 -std/encoding/xml/read.go:602.2,602.50 1 1 -std/encoding/xml/read.go:606.2,606.36 1 1 -std/encoding/xml/read.go:613.2,613.32 1 1 -std/encoding/xml/read.go:622.2,622.12 1 1 -std/encoding/xml/read.go:312.18,313.7 1 1 -std/encoding/xml/read.go:313.7,315.18 2 1 -std/encoding/xml/read.go:318.4,318.39 1 1 -std/encoding/xml/read.go:315.18,317.5 1 1 -std/encoding/xml/read.go:318.39,320.10 2 1 -std/encoding/xml/read.go:327.53,329.44 2 1 -std/encoding/xml/read.go:329.44,331.4 1 1 -std/encoding/xml/read.go:334.31,335.18 1 1 -std/encoding/xml/read.go:338.3,338.19 1 1 -std/encoding/xml/read.go:335.18,337.4 1 1 -std/encoding/xml/read.go:341.66,345.3 1 1 -std/encoding/xml/read.go:348.19,350.65 2 1 -std/encoding/xml/read.go:350.65,352.4 1 1 -std/encoding/xml/read.go:356.70,358.3 1 1 -std/encoding/xml/read.go:361.19,363.69 2 1 -std/encoding/xml/read.go:363.69,365.4 1 1 -std/encoding/xml/read.go:384.10,386.57 2 1 -std/encoding/xml/read.go:388.25,393.18 2 1 -std/encoding/xml/read.go:395.21,398.41 3 1 -std/encoding/xml/read.go:406.3,410.56 3 1 -std/encoding/xml/read.go:414.3,414.13 1 1 -std/encoding/xml/read.go:416.236,418.15 2 1 -std/encoding/xml/read.go:420.22,423.22 3 1 -std/encoding/xml/read.go:428.3,430.17 3 1 -std/encoding/xml/read.go:434.3,437.27 3 1 -std/encoding/xml/read.go:462.3,462.32 1 1 -std/encoding/xml/read.go:493.3,493.31 1 1 -std/encoding/xml/read.go:398.41,401.9 2 1 -std/encoding/xml/read.go:410.56,413.4 2 0 -std/encoding/xml/read.go:423.22,425.9 2 1 -std/encoding/xml/read.go:430.17,432.4 1 1 -std/encoding/xml/read.go:437.27,439.58 2 1 -std/encoding/xml/read.go:443.4,446.60 3 1 -std/encoding/xml/read.go:455.4,456.42 2 1 -std/encoding/xml/read.go:439.58,441.5 1 1 -std/encoding/xml/read.go:446.60,448.31 2 1 -std/encoding/xml/read.go:453.5,453.29 1 1 -std/encoding/xml/read.go:448.31,450.6 1 1 -std/encoding/xml/read.go:450.11,452.6 1 1 -std/encoding/xml/read.go:456.42,458.5 1 1 -std/encoding/xml/read.go:462.32,465.32 3 1 -std/encoding/xml/read.go:483.4,483.28 1 1 -std/encoding/xml/read.go:465.32,467.32 2 1 -std/encoding/xml/read.go:468.16,470.90 2 1 -std/encoding/xml/read.go:477.23,478.19 1 1 -std/encoding/xml/read.go:470.90,471.54 1 1 -std/encoding/xml/read.go:474.7,474.21 1 1 -std/encoding/xml/read.go:471.54,473.8 1 1 -std/encoding/xml/read.go:478.19,480.7 1 1 -std/encoding/xml/read.go:483.28,486.52 3 1 -std/encoding/xml/read.go:486.52,488.6 1 0 -std/encoding/xml/read.go:493.31,495.31 2 1 -std/encoding/xml/read.go:496.27,497.28 1 1 -std/encoding/xml/read.go:501.18,502.31 1 1 -std/encoding/xml/read.go:506.31,507.27 1 1 -std/encoding/xml/read.go:511.19,512.27 1 1 -std/encoding/xml/read.go:497.28,499.6 1 1 -std/encoding/xml/read.go:502.31,504.6 1 1 -std/encoding/xml/read.go:507.27,509.6 1 1 -std/encoding/xml/read.go:512.27,514.24 2 1 -std/encoding/xml/read.go:514.24,517.7 2 1 -std/encoding/xml/read.go:517.12,519.7 1 0 -std/encoding/xml/read.go:528.6,530.24 2 1 -std/encoding/xml/read.go:533.3,534.17 2 1 -std/encoding/xml/read.go:537.3,537.26 1 1 -std/encoding/xml/read.go:530.24,532.4 1 1 -std/encoding/xml/read.go:534.17,536.4 1 1 -std/encoding/xml/read.go:538.21,540.20 2 1 -std/encoding/xml/read.go:552.4,552.17 1 1 -std/encoding/xml/read.go:558.19,559.25 1 1 -std/encoding/xml/read.go:565.4,565.14 1 1 -std/encoding/xml/read.go:567.17,568.26 1 1 -std/encoding/xml/read.go:572.16,573.29 1 1 -std/encoding/xml/read.go:540.20,542.19 2 1 -std/encoding/xml/read.go:545.5,545.39 1 1 -std/encoding/xml/read.go:542.19,544.6 1 0 -std/encoding/xml/read.go:545.39,547.53 2 1 -std/encoding/xml/read.go:547.53,549.7 1 0 -std/encoding/xml/read.go:552.17,553.36 1 1 -std/encoding/xml/read.go:553.36,555.6 1 0 -std/encoding/xml/read.go:559.25,561.26 2 1 -std/encoding/xml/read.go:561.26,563.6 1 1 -std/encoding/xml/read.go:568.26,570.5 1 1 -std/encoding/xml/read.go:573.29,575.5 1 1 -std/encoding/xml/read.go:584.102,586.93 2 0 -std/encoding/xml/read.go:589.3,589.29 1 0 -std/encoding/xml/read.go:586.93,588.4 1 0 -std/encoding/xml/read.go:592.46,594.69 2 1 -std/encoding/xml/read.go:594.69,595.88 1 1 -std/encoding/xml/read.go:598.4,598.30 1 1 -std/encoding/xml/read.go:595.88,597.5 1 0 -std/encoding/xml/read.go:602.50,604.3 1 1 -std/encoding/xml/read.go:607.22,608.31 1 1 -std/encoding/xml/read.go:609.21,610.34 1 1 -std/encoding/xml/read.go:614.22,615.35 1 1 -std/encoding/xml/read.go:616.21,617.46 1 1 -std/encoding/xml/read.go:617.46,619.4 1 0 -std/encoding/xml/read.go:625.59,628.31 2 1 -std/encoding/xml/read.go:636.2,636.20 1 1 -std/encoding/xml/read.go:690.2,690.12 1 1 -std/encoding/xml/read.go:628.31,629.18 1 1 -std/encoding/xml/read.go:632.3,632.19 1 1 -std/encoding/xml/read.go:629.18,631.4 1 1 -std/encoding/xml/read.go:637.23,637.23 0 1 -std/encoding/xml/read.go:639.10,640.69 1 1 -std/encoding/xml/read.go:641.78,642.20 1 1 -std/encoding/xml/read.go:646.3,647.17 2 1 -std/encoding/xml/read.go:650.3,650.19 1 1 -std/encoding/xml/read.go:651.100,652.20 1 1 -std/encoding/xml/read.go:656.3,657.17 2 1 -std/encoding/xml/read.go:660.3,660.20 1 1 -std/encoding/xml/read.go:661.40,662.20 1 1 -std/encoding/xml/read.go:666.3,667.17 2 1 -std/encoding/xml/read.go:670.3,670.21 1 1 -std/encoding/xml/read.go:671.20,672.20 1 1 -std/encoding/xml/read.go:676.3,677.17 2 1 -std/encoding/xml/read.go:680.3,680.21 1 1 -std/encoding/xml/read.go:681.22,682.29 1 1 -std/encoding/xml/read.go:683.21,684.20 1 1 -std/encoding/xml/read.go:688.3,688.20 1 1 -std/encoding/xml/read.go:642.20,645.4 2 1 -std/encoding/xml/read.go:647.17,649.4 1 0 -std/encoding/xml/read.go:652.20,655.4 2 0 -std/encoding/xml/read.go:657.17,659.4 1 1 -std/encoding/xml/read.go:662.20,665.4 2 1 -std/encoding/xml/read.go:667.17,669.4 1 0 -std/encoding/xml/read.go:672.20,675.4 2 1 -std/encoding/xml/read.go:677.17,679.4 1 0 -std/encoding/xml/read.go:684.20,687.4 1 1 -std/encoding/xml/read.go:698.134,701.30 2 1 -std/encoding/xml/read.go:727.2,727.14 1 1 -std/encoding/xml/read.go:734.2,734.6 1 1 -std/encoding/xml/read.go:701.30,703.125 2 1 -std/encoding/xml/read.go:706.3,706.26 1 1 -std/encoding/xml/read.go:711.3,711.75 1 1 -std/encoding/xml/read.go:715.3,715.91 1 1 -std/encoding/xml/read.go:703.125,704.12 1 1 -std/encoding/xml/read.go:706.26,707.38 1 1 -std/encoding/xml/read.go:707.38,708.18 1 1 -std/encoding/xml/read.go:711.75,714.4 1 1 -std/encoding/xml/read.go:715.91,724.9 3 1 -std/encoding/xml/read.go:727.14,730.3 1 1 -std/encoding/xml/read.go:734.6,737.17 3 1 -std/encoding/xml/read.go:740.3,740.26 1 1 -std/encoding/xml/read.go:737.17,739.4 1 0 -std/encoding/xml/read.go:741.21,743.18 2 1 -std/encoding/xml/read.go:746.4,746.18 1 1 -std/encoding/xml/read.go:751.19,752.20 1 1 -std/encoding/xml/read.go:743.18,745.5 1 0 -std/encoding/xml/read.go:746.18,747.36 1 1 -std/encoding/xml/read.go:747.36,749.6 1 0 -std/encoding/xml/read.go:763.32,764.6 1 1 -std/encoding/xml/read.go:764.6,766.17 2 1 -std/encoding/xml/read.go:769.3,769.21 1 1 -std/encoding/xml/read.go:766.17,768.4 1 1 -std/encoding/xml/read.go:770.21,771.35 1 1 -std/encoding/xml/read.go:774.19,775.14 1 1 -std/encoding/xml/read.go:771.35,773.5 1 1 -std/encoding/xml/typeinfo.go:53.55,54.38 1 1 -std/encoding/xml/typeinfo.go:58.2,59.53 2 1 -std/encoding/xml/typeinfo.go:108.2,109.28 2 1 -std/encoding/xml/typeinfo.go:54.38,56.3 1 1 -std/encoding/xml/typeinfo.go:59.53,61.26 2 1 -std/encoding/xml/typeinfo.go:61.26,63.68 2 1 -std/encoding/xml/typeinfo.go:68.4,68.19 1 1 -std/encoding/xml/typeinfo.go:91.4,92.18 2 1 -std/encoding/xml/typeinfo.go:96.4,96.25 1 1 -std/encoding/xml/typeinfo.go:102.4,102.58 1 1 -std/encoding/xml/typeinfo.go:63.68,64.13 1 1 -std/encoding/xml/typeinfo.go:68.19,70.32 2 1 -std/encoding/xml/typeinfo.go:73.5,73.35 1 1 -std/encoding/xml/typeinfo.go:70.32,72.6 1 1 -std/encoding/xml/typeinfo.go:73.35,75.20 2 1 -std/encoding/xml/typeinfo.go:78.6,78.30 1 1 -std/encoding/xml/typeinfo.go:81.6,81.41 1 1 -std/encoding/xml/typeinfo.go:87.6,87.14 1 1 -std/encoding/xml/typeinfo.go:75.20,77.7 1 1 -std/encoding/xml/typeinfo.go:78.30,80.7 1 1 -std/encoding/xml/typeinfo.go:81.41,83.62 2 1 -std/encoding/xml/typeinfo.go:83.62,85.8 1 1 -std/encoding/xml/typeinfo.go:92.18,94.5 1 1 -std/encoding/xml/typeinfo.go:96.25,98.13 2 1 -std/encoding/xml/typeinfo.go:102.58,104.5 1 1 -std/encoding/xml/typeinfo.go:113.84,118.42 3 1 -std/encoding/xml/typeinfo.go:123.2,124.22 2 1 -std/encoding/xml/typeinfo.go:173.2,173.36 1 1 -std/encoding/xml/typeinfo.go:178.2,178.23 1 1 -std/encoding/xml/typeinfo.go:186.2,186.15 1 1 -std/encoding/xml/typeinfo.go:199.2,200.22 2 1 -std/encoding/xml/typeinfo.go:203.2,203.35 1 1 -std/encoding/xml/typeinfo.go:206.2,207.22 2 1 -std/encoding/xml/typeinfo.go:217.2,217.31 1 1 -std/encoding/xml/typeinfo.go:225.2,225.19 1 1 -std/encoding/xml/typeinfo.go:118.42,120.3 1 1 -std/encoding/xml/typeinfo.go:124.22,126.3 1 1 -std/encoding/xml/typeinfo.go:126.8,128.35 2 1 -std/encoding/xml/typeinfo.go:148.3,149.44 2 1 -std/encoding/xml/typeinfo.go:160.3,160.32 1 1 -std/encoding/xml/typeinfo.go:163.3,163.71 1 1 -std/encoding/xml/typeinfo.go:166.3,166.13 1 1 -std/encoding/xml/typeinfo.go:128.35,129.16 1 1 -std/encoding/xml/typeinfo.go:130.16,131.25 1 1 -std/encoding/xml/typeinfo.go:132.17,133.26 1 1 -std/encoding/xml/typeinfo.go:134.20,135.29 1 1 -std/encoding/xml/typeinfo.go:136.20,137.29 1 1 -std/encoding/xml/typeinfo.go:138.19,139.28 1 1 -std/encoding/xml/typeinfo.go:140.15,141.24 1 1 -std/encoding/xml/typeinfo.go:142.21,143.30 1 1 -std/encoding/xml/typeinfo.go:150.10,151.27 1 1 -std/encoding/xml/typeinfo.go:152.74,153.55 1 1 -std/encoding/xml/typeinfo.go:156.11,158.17 1 1 -std/encoding/xml/typeinfo.go:153.55,155.5 1 1 -std/encoding/xml/typeinfo.go:160.32,162.4 1 1 -std/encoding/xml/typeinfo.go:163.71,165.4 1 1 -std/encoding/xml/typeinfo.go:166.13,169.4 1 1 -std/encoding/xml/typeinfo.go:173.36,176.3 1 1 -std/encoding/xml/typeinfo.go:178.23,184.3 2 1 -std/encoding/xml/typeinfo.go:186.15,190.55 1 1 -std/encoding/xml/typeinfo.go:195.3,195.20 1 1 -std/encoding/xml/typeinfo.go:190.55,192.4 1 1 -std/encoding/xml/typeinfo.go:192.9,194.4 1 1 -std/encoding/xml/typeinfo.go:200.22,202.3 1 1 -std/encoding/xml/typeinfo.go:203.35,205.3 1 1 -std/encoding/xml/typeinfo.go:207.22,208.36 1 1 -std/encoding/xml/typeinfo.go:211.3,211.43 1 1 -std/encoding/xml/typeinfo.go:208.36,210.4 1 1 -std/encoding/xml/typeinfo.go:217.31,220.51 3 1 -std/encoding/xml/typeinfo.go:220.51,223.4 1 1 -std/encoding/xml/typeinfo.go:231.59,232.32 1 1 -std/encoding/xml/typeinfo.go:235.2,235.34 1 1 -std/encoding/xml/typeinfo.go:238.2,238.44 1 1 -std/encoding/xml/typeinfo.go:251.2,251.12 1 1 -std/encoding/xml/typeinfo.go:232.32,234.3 1 1 -std/encoding/xml/typeinfo.go:235.34,237.3 1 1 -std/encoding/xml/typeinfo.go:238.44,240.24 2 1 -std/encoding/xml/typeinfo.go:243.3,244.37 2 1 -std/encoding/xml/typeinfo.go:249.3,249.8 1 1 -std/encoding/xml/typeinfo.go:240.24,241.12 1 1 -std/encoding/xml/typeinfo.go:244.37,246.4 1 1 -std/encoding/xml/typeinfo.go:254.24,255.12 1 1 -std/encoding/xml/typeinfo.go:258.2,258.10 1 1 -std/encoding/xml/typeinfo.go:255.12,257.3 1 1 -std/encoding/xml/typeinfo.go:268.77,272.30 2 1 -std/encoding/xml/typeinfo.go:301.2,301.22 1 1 -std/encoding/xml/typeinfo.go:308.2,308.30 1 1 -std/encoding/xml/typeinfo.go:315.2,315.30 1 1 -std/encoding/xml/typeinfo.go:326.2,326.43 1 1 -std/encoding/xml/typeinfo.go:331.2,332.12 2 1 -std/encoding/xml/typeinfo.go:272.30,274.43 2 1 -std/encoding/xml/typeinfo.go:277.3,277.71 1 1 -std/encoding/xml/typeinfo.go:280.3,281.29 2 1 -std/encoding/xml/typeinfo.go:286.3,286.44 1 1 -std/encoding/xml/typeinfo.go:274.43,275.12 1 1 -std/encoding/xml/typeinfo.go:277.71,278.12 1 1 -std/encoding/xml/typeinfo.go:281.29,282.42 1 1 -std/encoding/xml/typeinfo.go:282.42,283.18 1 1 -std/encoding/xml/typeinfo.go:286.44,287.52 1 1 -std/encoding/xml/typeinfo.go:287.52,289.5 1 1 -std/encoding/xml/typeinfo.go:290.9,290.51 1 1 -std/encoding/xml/typeinfo.go:290.51,291.52 1 1 -std/encoding/xml/typeinfo.go:291.52,293.5 1 1 -std/encoding/xml/typeinfo.go:294.9,295.30 1 1 -std/encoding/xml/typeinfo.go:295.30,297.5 1 1 -std/encoding/xml/typeinfo.go:301.22,304.3 2 1 -std/encoding/xml/typeinfo.go:308.30,309.47 1 1 -std/encoding/xml/typeinfo.go:309.47,311.4 1 1 -std/encoding/xml/typeinfo.go:315.30,317.37 2 1 -std/encoding/xml/typeinfo.go:317.37,321.4 3 1 -std/encoding/xml/typeinfo.go:326.43,330.3 3 1 -std/encoding/xml/typeinfo.go:343.39,345.2 1 1 -std/encoding/xml/typeinfo.go:357.90,358.30 1 1 -std/encoding/xml/typeinfo.go:373.2,373.10 1 1 -std/encoding/xml/typeinfo.go:358.30,359.12 1 1 -std/encoding/xml/typeinfo.go:371.3,371.17 1 1 -std/encoding/xml/typeinfo.go:359.12,361.68 2 1 -std/encoding/xml/typeinfo.go:361.68,362.18 1 1 -std/encoding/xml/typeinfo.go:368.5,368.17 1 1 -std/encoding/xml/typeinfo.go:362.18,363.32 1 1 -std/encoding/xml/typeinfo.go:366.6,366.41 1 1 -std/encoding/xml/typeinfo.go:363.32,365.7 1 1 -std/encoding/xml/xml.go:34.38,36.2 1 1 -std/encoding/xml/xml.go:64.43,69.2 4 1 -std/encoding/xml/xml.go:72.40,74.2 1 1 -std/encoding/xml/xml.go:86.32,90.2 3 1 -std/encoding/xml/xml.go:93.35,93.67 1 1 -std/encoding/xml/xml.go:100.33,100.64 1 1 -std/encoding/xml/xml.go:109.35,112.2 2 1 -std/encoding/xml/xml.go:119.37,119.70 1 1 -std/encoding/xml/xml.go:122.31,123.23 1 1 -std/encoding/xml/xml.go:135.2,135.10 1 1 -std/encoding/xml/xml.go:124.16,125.18 1 1 -std/encoding/xml/xml.go:126.15,127.18 1 1 -std/encoding/xml/xml.go:128.17,129.18 1 1 -std/encoding/xml/xml.go:130.16,131.18 1 1 -std/encoding/xml/xml.go:132.20,133.18 1 1 -std/encoding/xml/xml.go:229.39,238.2 3 1 -std/encoding/xml/xml.go:241.46,243.31 1 1 -std/encoding/xml/xml.go:246.2,253.10 2 1 -std/encoding/xml/xml.go:243.31,245.3 1 1 -std/encoding/xml/xml.go:279.42,282.42 3 1 -std/encoding/xml/xml.go:285.2,285.24 1 1 -std/encoding/xml/xml.go:298.2,298.15 1 1 -std/encoding/xml/xml.go:304.2,304.24 1 1 -std/encoding/xml/xml.go:338.2,338.15 1 1 -std/encoding/xml/xml.go:282.42,284.3 1 1 -std/encoding/xml/xml.go:285.24,288.3 2 1 -std/encoding/xml/xml.go:288.8,288.46 1 1 -std/encoding/xml/xml.go:288.46,289.10 1 1 -std/encoding/xml/xml.go:295.3,295.16 1 1 -std/encoding/xml/xml.go:290.36,291.13 1 1 -std/encoding/xml/xml.go:292.62,293.41 1 1 -std/encoding/xml/xml.go:298.15,299.35 1 1 -std/encoding/xml/xml.go:299.35,302.4 2 1 -std/encoding/xml/xml.go:305.20,310.29 1 1 -std/encoding/xml/xml.go:324.3,325.26 2 1 -std/encoding/xml/xml.go:328.3,329.9 2 1 -std/encoding/xml/xml.go:331.18,333.25 2 1 -std/encoding/xml/xml.go:336.3,336.9 1 1 -std/encoding/xml/xml.go:310.29,311.35 1 1 -std/encoding/xml/xml.go:316.4,316.57 1 1 -std/encoding/xml/xml.go:311.35,315.5 3 1 -std/encoding/xml/xml.go:316.57,321.5 3 1 -std/encoding/xml/xml.go:325.26,327.4 1 1 -std/encoding/xml/xml.go:333.25,335.4 1 1 -std/encoding/xml/xml.go:350.58,351.9 1 1 -std/encoding/xml/xml.go:361.2,361.32 1 1 -std/encoding/xml/xml.go:352.30,353.9 1 1 -std/encoding/xml/xml.go:354.39,355.9 1 1 -std/encoding/xml/xml.go:356.28,357.19 1 1 -std/encoding/xml/xml.go:358.47,359.9 1 0 -std/encoding/xml/xml.go:361.32,363.3 1 1 -std/encoding/xml/xml.go:363.8,363.26 1 1 -std/encoding/xml/xml.go:363.26,365.3 1 1 -std/encoding/xml/xml.go:368.47,373.37 1 1 -std/encoding/xml/xml.go:373.37,375.3 1 1 -std/encoding/xml/xml.go:375.8,377.3 1 1 -std/encoding/xml/xml.go:397.41,399.14 2 1 -std/encoding/xml/xml.go:404.2,407.10 4 1 -std/encoding/xml/xml.go:399.14,401.3 1 1 -std/encoding/xml/xml.go:401.8,403.3 1 1 -std/encoding/xml/xml.go:410.32,412.14 2 1 -std/encoding/xml/xml.go:417.2,417.10 1 1 -std/encoding/xml/xml.go:412.14,416.3 3 1 -std/encoding/xml/xml.go:423.29,428.29 2 1 -std/encoding/xml/xml.go:433.2,433.52 1 1 -std/encoding/xml/xml.go:436.2,437.14 2 1 -std/encoding/xml/xml.go:442.2,444.16 3 1 -std/encoding/xml/xml.go:428.29,430.3 1 0 -std/encoding/xml/xml.go:433.52,435.3 1 0 -std/encoding/xml/xml.go:437.14,439.3 1 1 -std/encoding/xml/xml.go:439.8,441.3 1 1 -std/encoding/xml/xml.go:449.33,450.42 1 1 -std/encoding/xml/xml.go:453.2,454.13 2 1 -std/encoding/xml/xml.go:450.42,452.3 1 1 -std/encoding/xml/xml.go:458.42,461.2 2 1 -std/encoding/xml/xml.go:465.61,470.2 4 1 -std/encoding/xml/xml.go:473.49,475.2 1 1 -std/encoding/xml/xml.go:483.50,486.9 3 1 -std/encoding/xml/xml.go:507.2,507.69 1 1 -std/encoding/xml/xml.go:516.2,516.13 1 1 -std/encoding/xml/xml.go:487.38,489.15 2 1 -std/encoding/xml/xml.go:490.34,491.16 1 1 -std/encoding/xml/xml.go:497.3,498.15 2 1 -std/encoding/xml/xml.go:499.34,502.15 2 0 -std/encoding/xml/xml.go:491.16,496.4 4 1 -std/encoding/xml/xml.go:507.69,509.11 2 1 -std/encoding/xml/xml.go:509.11,511.4 1 1 -std/encoding/xml/xml.go:511.9,513.4 1 1 -std/encoding/xml/xml.go:521.52,522.44 1 1 -std/encoding/xml/xml.go:525.2,526.32 2 1 -std/encoding/xml/xml.go:536.2,536.19 1 1 -std/encoding/xml/xml.go:522.44,524.3 1 1 -std/encoding/xml/xml.go:526.32,527.33 1 1 -std/encoding/xml/xml.go:527.33,530.36 2 1 -std/encoding/xml/xml.go:533.4,533.9 1 1 -std/encoding/xml/xml.go:530.36,532.5 1 1 -std/encoding/xml/xml.go:544.45,545.26 1 1 -std/encoding/xml/xml.go:548.2,548.21 1 1 -std/encoding/xml/xml.go:545.26,547.3 1 0 -std/encoding/xml/xml.go:551.45,552.16 1 1 -std/encoding/xml/xml.go:555.2,555.18 1 1 -std/encoding/xml/xml.go:558.2,558.17 1 1 -std/encoding/xml/xml.go:566.2,567.9 2 1 -std/encoding/xml/xml.go:571.2,571.14 1 1 -std/encoding/xml/xml.go:581.2,581.31 1 1 -std/encoding/xml/xml.go:584.2,584.11 1 1 -std/encoding/xml/xml.go:776.2,783.32 3 1 -std/encoding/xml/xml.go:790.2,791.6 2 1 -std/encoding/xml/xml.go:840.2,840.11 1 1 -std/encoding/xml/xml.go:844.2,844.38 1 1 -std/encoding/xml/xml.go:552.16,554.3 1 1 -std/encoding/xml/xml.go:555.18,557.3 1 1 -std/encoding/xml/xml.go:558.17,564.3 2 1 -std/encoding/xml/xml.go:567.9,569.3 1 1 -std/encoding/xml/xml.go:571.14,575.18 3 1 -std/encoding/xml/xml.go:578.3,578.29 1 1 -std/encoding/xml/xml.go:575.18,577.4 1 1 -std/encoding/xml/xml.go:581.31,583.3 1 1 -std/encoding/xml/xml.go:585.11,588.33 2 1 -std/encoding/xml/xml.go:594.3,595.32 2 1 -std/encoding/xml/xml.go:598.3,598.15 1 1 -std/encoding/xml/xml.go:602.3,602.31 1 1 -std/encoding/xml/xml.go:604.11,607.33 2 1 -std/encoding/xml/xml.go:613.3,616.7 4 1 -std/encoding/xml/xml.go:626.3,629.22 3 1 -std/encoding/xml/xml.go:653.3,653.37 1 1 -std/encoding/xml/xml.go:655.11,657.32 1 1 -std/encoding/xml/xml.go:660.3,660.12 1 1 -std/encoding/xml/xml.go:714.3,718.7 5 1 -std/encoding/xml/xml.go:772.3,772.39 1 1 -std/encoding/xml/xml.go:588.33,589.20 1 1 -std/encoding/xml/xml.go:592.4,592.21 1 1 -std/encoding/xml/xml.go:589.20,591.5 1 1 -std/encoding/xml/xml.go:595.32,597.4 1 0 -std/encoding/xml/xml.go:598.15,601.4 2 1 -std/encoding/xml/xml.go:607.33,608.20 1 1 -std/encoding/xml/xml.go:611.4,611.21 1 1 -std/encoding/xml/xml.go:608.20,610.5 1 1 -std/encoding/xml/xml.go:616.7,617.33 1 1 -std/encoding/xml/xml.go:620.4,621.29 2 1 -std/encoding/xml/xml.go:624.4,624.10 1 1 -std/encoding/xml/xml.go:617.33,619.5 1 1 -std/encoding/xml/xml.go:621.29,622.10 1 1 -std/encoding/xml/xml.go:629.22,632.33 3 1 -std/encoding/xml/xml.go:636.4,637.89 2 1 -std/encoding/xml/xml.go:632.33,635.5 2 1 -std/encoding/xml/xml.go:637.89,638.31 1 1 -std/encoding/xml/xml.go:642.5,643.19 2 1 -std/encoding/xml/xml.go:647.5,647.20 1 1 -std/encoding/xml/xml.go:650.5,650.27 1 1 -std/encoding/xml/xml.go:638.31,641.6 2 1 -std/encoding/xml/xml.go:643.19,646.6 2 1 -std/encoding/xml/xml.go:647.20,648.69 1 1 -std/encoding/xml/xml.go:657.32,659.4 1 1 -std/encoding/xml/xml.go:661.12,663.33 1 1 -std/encoding/xml/xml.go:666.4,666.16 1 1 -std/encoding/xml/xml.go:671.4,673.8 3 1 -std/encoding/xml/xml.go:688.4,690.29 3 1 -std/encoding/xml/xml.go:692.12,694.27 1 1 -std/encoding/xml/xml.go:704.4,705.19 2 1 -std/encoding/xml/xml.go:708.4,708.30 1 1 -std/encoding/xml/xml.go:663.33,665.5 1 1 -std/encoding/xml/xml.go:666.16,669.5 2 1 -std/encoding/xml/xml.go:673.8,674.34 1 1 -std/encoding/xml/xml.go:677.5,678.31 2 1 -std/encoding/xml/xml.go:686.5,686.19 1 1 -std/encoding/xml/xml.go:674.34,676.6 1 1 -std/encoding/xml/xml.go:678.31,679.18 1 1 -std/encoding/xml/xml.go:684.6,684.11 1 1 -std/encoding/xml/xml.go:679.18,683.7 2 1 -std/encoding/xml/xml.go:694.27,695.34 1 1 -std/encoding/xml/xml.go:698.5,698.25 1 1 -std/encoding/xml/xml.go:695.34,697.6 1 1 -std/encoding/xml/xml.go:698.25,701.6 2 1 -std/encoding/xml/xml.go:705.19,707.5 1 1 -std/encoding/xml/xml.go:718.7,719.33 1 1 -std/encoding/xml/xml.go:722.4,722.46 1 1 -std/encoding/xml/xml.go:726.4,727.11 2 1 -std/encoding/xml/xml.go:719.33,721.5 1 1 -std/encoding/xml/xml.go:722.46,723.10 1 1 -std/encoding/xml/xml.go:728.22,729.16 1 1 -std/encoding/xml/xml.go:731.22,731.22 0 1 -std/encoding/xml/xml.go:734.31,735.16 1 1 -std/encoding/xml/xml.go:737.34,738.12 1 1 -std/encoding/xml/xml.go:740.34,743.33 2 1 -std/encoding/xml/xml.go:757.5,761.9 3 1 -std/encoding/xml/xml.go:743.33,744.35 1 1 -std/encoding/xml/xml.go:747.6,747.19 1 1 -std/encoding/xml/xml.go:744.35,746.7 1 1 -std/encoding/xml/xml.go:747.19,748.30 1 1 -std/encoding/xml/xml.go:751.7,752.19 2 1 -std/encoding/xml/xml.go:748.30,750.8 1 1 -std/encoding/xml/xml.go:761.9,762.35 1 1 -std/encoding/xml/xml.go:765.6,765.44 1 1 -std/encoding/xml/xml.go:768.6,768.20 1 1 -std/encoding/xml/xml.go:762.35,764.7 1 1 -std/encoding/xml/xml.go:765.44,766.12 1 1 -std/encoding/xml/xml.go:783.32,784.19 1 1 -std/encoding/xml/xml.go:787.3,787.20 1 1 -std/encoding/xml/xml.go:784.19,786.4 1 1 -std/encoding/xml/xml.go:791.6,793.32 2 1 -std/encoding/xml/xml.go:796.3,796.15 1 1 -std/encoding/xml/xml.go:807.3,807.15 1 1 -std/encoding/xml/xml.go:810.3,813.35 3 1 -std/encoding/xml/xml.go:819.3,820.32 2 1 -std/encoding/xml/xml.go:823.3,823.15 1 1 -std/encoding/xml/xml.go:838.3,838.25 1 1 -std/encoding/xml/xml.go:793.32,795.4 1 1 -std/encoding/xml/xml.go:796.15,798.33 2 1 -std/encoding/xml/xml.go:801.4,801.16 1 1 -std/encoding/xml/xml.go:805.4,805.9 1 1 -std/encoding/xml/xml.go:798.33,800.5 1 1 -std/encoding/xml/xml.go:801.16,804.5 2 1 -std/encoding/xml/xml.go:807.15,808.9 1 1 -std/encoding/xml/xml.go:813.35,814.20 1 1 -std/encoding/xml/xml.go:817.4,817.21 1 1 -std/encoding/xml/xml.go:814.20,816.5 1 1 -std/encoding/xml/xml.go:820.32,822.4 1 0 -std/encoding/xml/xml.go:823.15,824.16 1 1 -std/encoding/xml/xml.go:828.4,829.26 2 1 -std/encoding/xml/xml.go:824.16,827.5 2 1 -std/encoding/xml/xml.go:830.9,833.19 3 1 -std/encoding/xml/xml.go:836.4,836.26 1 1 -std/encoding/xml/xml.go:833.19,835.5 1 1 -std/encoding/xml/xml.go:840.11,843.3 2 1 -std/encoding/xml/xml.go:847.36,849.9 2 1 -std/encoding/xml/xml.go:853.2,853.27 1 1 -std/encoding/xml/xml.go:857.2,857.14 1 1 -std/encoding/xml/xml.go:862.2,864.6 3 1 -std/encoding/xml/xml.go:878.2,878.22 1 1 -std/encoding/xml/xml.go:849.9,851.3 1 1 -std/encoding/xml/xml.go:853.27,855.3 1 1 -std/encoding/xml/xml.go:857.14,860.3 2 1 -std/encoding/xml/xml.go:864.6,866.10 2 1 -std/encoding/xml/xml.go:870.3,871.61 1 1 -std/encoding/xml/xml.go:866.10,868.4 1 1 -std/encoding/xml/xml.go:871.61,873.4 1 1 -std/encoding/xml/xml.go:873.9,875.9 2 1 -std/encoding/xml/xml.go:882.27,883.6 1 1 -std/encoding/xml/xml.go:883.6,885.10 2 1 -std/encoding/xml/xml.go:888.3,888.12 1 1 -std/encoding/xml/xml.go:885.10,887.4 1 1 -std/encoding/xml/xml.go:889.30,889.30 0 1 -std/encoding/xml/xml.go:890.11,892.10 2 1 -std/encoding/xml/xml.go:901.44,902.18 1 1 -std/encoding/xml/xml.go:905.2,905.21 1 1 -std/encoding/xml/xml.go:917.2,917.15 1 1 -std/encoding/xml/xml.go:920.2,921.16 2 1 -std/encoding/xml/xml.go:902.18,904.3 1 1 -std/encoding/xml/xml.go:905.21,908.3 2 1 -std/encoding/xml/xml.go:908.8,910.19 2 1 -std/encoding/xml/xml.go:913.3,913.21 1 1 -std/encoding/xml/xml.go:910.19,912.4 1 1 -std/encoding/xml/xml.go:913.21,915.4 1 1 -std/encoding/xml/xml.go:917.15,919.3 1 1 -std/encoding/xml/xml.go:927.39,929.2 1 1 -std/encoding/xml/xml.go:933.37,935.21 2 1 -std/encoding/xml/xml.go:938.2,938.10 1 1 -std/encoding/xml/xml.go:935.21,937.3 1 1 -std/encoding/xml/xml.go:945.48,946.27 1 1 -std/encoding/xml/xml.go:951.2,951.8 1 1 -std/encoding/xml/xml.go:946.27,947.22 1 1 -std/encoding/xml/xml.go:947.22,949.4 1 1 -std/encoding/xml/xml.go:955.34,956.15 1 1 -std/encoding/xml/xml.go:959.2,960.12 2 1 -std/encoding/xml/xml.go:956.15,958.3 1 1 -std/encoding/xml/xml.go:975.54,980.6 4 1 -std/encoding/xml/xml.go:1118.2,1123.19 4 1 -std/encoding/xml/xml.go:1136.2,1136.13 1 1 -std/encoding/xml/xml.go:980.6,982.10 2 1 -std/encoding/xml/xml.go:994.3,994.41 1 1 -std/encoding/xml/xml.go:1004.3,1004.25 1 1 -std/encoding/xml/xml.go:1012.3,1012.37 1 1 -std/encoding/xml/xml.go:1015.3,1015.25 1 1 -std/encoding/xml/xml.go:1108.3,1108.16 1 1 -std/encoding/xml/xml.go:1116.3,1116.17 1 1 -std/encoding/xml/xml.go:982.10,983.13 1 1 -std/encoding/xml/xml.go:989.4,989.15 1 1 -std/encoding/xml/xml.go:983.13,984.24 1 1 -std/encoding/xml/xml.go:987.5,987.15 1 1 -std/encoding/xml/xml.go:984.24,986.6 1 1 -std/encoding/xml/xml.go:994.41,995.13 1 1 -std/encoding/xml/xml.go:999.4,1000.14 2 1 -std/encoding/xml/xml.go:995.13,997.16 2 1 -std/encoding/xml/xml.go:1004.25,1005.18 1 1 -std/encoding/xml/xml.go:1009.4,1010.15 2 1 -std/encoding/xml/xml.go:1005.18,1008.5 2 1 -std/encoding/xml/xml.go:1012.37,1013.15 1 1 -std/encoding/xml/xml.go:1015.25,1026.33 6 1 -std/encoding/xml/xml.go:1029.4,1029.16 1 1 -std/encoding/xml/xml.go:1089.4,1089.16 1 1 -std/encoding/xml/xml.go:1095.4,1095.17 1 1 -std/encoding/xml/xml.go:1099.4,1100.30 2 1 -std/encoding/xml/xml.go:1103.4,1104.14 2 1 -std/encoding/xml/xml.go:1026.33,1028.5 1 1 -std/encoding/xml/xml.go:1029.16,1031.34 2 1 -std/encoding/xml/xml.go:1034.5,1035.17 2 1 -std/encoding/xml/xml.go:1042.5,1045.41 2 1 -std/encoding/xml/xml.go:1051.5,1051.17 1 1 -std/encoding/xml/xml.go:1031.34,1033.6 1 1 -std/encoding/xml/xml.go:1035.17,1038.35 3 1 -std/encoding/xml/xml.go:1038.35,1040.7 1 1 -std/encoding/xml/xml.go:1045.41,1047.35 2 1 -std/encoding/xml/xml.go:1047.35,1049.7 1 1 -std/encoding/xml/xml.go:1051.17,1053.6 1 1 -std/encoding/xml/xml.go:1053.11,1057.44 4 1 -std/encoding/xml/xml.go:1057.44,1060.7 2 1 -std/encoding/xml/xml.go:1062.10,1064.22 2 1 -std/encoding/xml/xml.go:1069.5,1069.34 1 1 -std/encoding/xml/xml.go:1072.5,1072.17 1 1 -std/encoding/xml/xml.go:1064.22,1065.22 1 1 -std/encoding/xml/xml.go:1065.22,1067.7 1 1 -std/encoding/xml/xml.go:1069.34,1071.6 1 0 -std/encoding/xml/xml.go:1072.17,1074.6 1 1 -std/encoding/xml/xml.go:1074.11,1077.22 3 1 -std/encoding/xml/xml.go:1077.22,1079.33 2 1 -std/encoding/xml/xml.go:1079.33,1082.8 2 1 -std/encoding/xml/xml.go:1082.13,1082.33 1 1 -std/encoding/xml/xml.go:1082.33,1084.8 1 1 -std/encoding/xml/xml.go:1089.16,1093.19 4 1 -std/encoding/xml/xml.go:1095.17,1097.19 2 1 -std/encoding/xml/xml.go:1100.30,1102.5 1 1 -std/encoding/xml/xml.go:1108.16,1110.4 1 1 -std/encoding/xml/xml.go:1110.9,1110.37 1 1 -std/encoding/xml/xml.go:1110.38,1112.4 0 1 -std/encoding/xml/xml.go:1112.9,1114.4 1 1 -std/encoding/xml/xml.go:1123.19,1125.39 2 1 -std/encoding/xml/xml.go:1129.3,1130.29 2 1 -std/encoding/xml/xml.go:1125.39,1128.4 2 1 -std/encoding/xml/xml.go:1130.29,1133.4 2 1 -std/encoding/xml/xml.go:1142.48,1149.2 1 1 -std/encoding/xml/xml.go:1153.49,1155.9 2 1 -std/encoding/xml/xml.go:1158.2,1159.11 2 1 -std/encoding/xml/xml.go:1165.2,1165.19 1 1 -std/encoding/xml/xml.go:1155.9,1157.3 1 1 -std/encoding/xml/xml.go:1159.11,1161.3 1 1 -std/encoding/xml/xml.go:1161.8,1164.3 2 1 -std/encoding/xml/xml.go:1171.46,1173.19 2 1 -std/encoding/xml/xml.go:1178.2,1179.16 2 1 -std/encoding/xml/xml.go:1183.2,1183.24 1 1 -std/encoding/xml/xml.go:1173.19,1175.3 1 1 -std/encoding/xml/xml.go:1179.16,1182.3 2 1 -std/encoding/xml/xml.go:1189.40,1191.31 2 1 -std/encoding/xml/xml.go:1194.2,1194.41 1 1 -std/encoding/xml/xml.go:1198.2,1200.6 2 1 -std/encoding/xml/xml.go:1210.2,1210.13 1 1 -std/encoding/xml/xml.go:1191.31,1193.3 1 1 -std/encoding/xml/xml.go:1194.41,1197.3 2 1 -std/encoding/xml/xml.go:1200.6,1201.32 1 1 -std/encoding/xml/xml.go:1204.3,1204.42 1 1 -std/encoding/xml/xml.go:1208.3,1208.21 1 1 -std/encoding/xml/xml.go:1201.32,1203.4 1 1 -std/encoding/xml/xml.go:1204.42,1206.9 2 1 -std/encoding/xml/xml.go:1213.30,1218.2 1 1 -std/encoding/xml/xml.go:1220.28,1221.17 1 1 -std/encoding/xml/xml.go:1224.2,1225.35 2 1 -std/encoding/xml/xml.go:1228.2,1228.27 1 1 -std/encoding/xml/xml.go:1231.2,1231.17 1 1 -std/encoding/xml/xml.go:1241.2,1241.13 1 1 -std/encoding/xml/xml.go:1221.17,1223.3 1 1 -std/encoding/xml/xml.go:1225.35,1227.3 1 1 -std/encoding/xml/xml.go:1228.27,1230.3 1 1 -std/encoding/xml/xml.go:1231.17,1234.36 3 1 -std/encoding/xml/xml.go:1237.3,1237.54 1 1 -std/encoding/xml/xml.go:1234.36,1236.4 1 1 -std/encoding/xml/xml.go:1237.54,1239.4 1 0 -std/encoding/xml/xml.go:1244.34,1245.17 1 1 -std/encoding/xml/xml.go:1248.2,1249.35 2 1 -std/encoding/xml/xml.go:1252.2,1252.27 1 1 -std/encoding/xml/xml.go:1255.2,1255.17 1 1 -std/encoding/xml/xml.go:1265.2,1265.13 1 1 -std/encoding/xml/xml.go:1245.17,1247.3 1 1 -std/encoding/xml/xml.go:1249.35,1251.3 1 1 -std/encoding/xml/xml.go:1252.27,1254.3 1 1 -std/encoding/xml/xml.go:1255.17,1258.36 3 1 -std/encoding/xml/xml.go:1261.3,1261.54 1 1 -std/encoding/xml/xml.go:1258.36,1260.4 1 1 -std/encoding/xml/xml.go:1261.54,1263.4 1 0 -std/encoding/xml/xml.go:1894.46,1896.2 1 1 -std/encoding/xml/xml.go:1901.66,1904.26 3 1 -std/encoding/xml/xml.go:1942.2,1943.12 2 1 -std/encoding/xml/xml.go:1904.26,1907.12 3 1 -std/encoding/xml/xml.go:1934.3,1934.55 1 1 -std/encoding/xml/xml.go:1937.3,1937.41 1 1 -std/encoding/xml/xml.go:1940.3,1940.11 1 1 -std/encoding/xml/xml.go:1908.12,1909.17 1 1 -std/encoding/xml/xml.go:1910.13,1911.17 1 1 -std/encoding/xml/xml.go:1912.12,1913.16 1 1 -std/encoding/xml/xml.go:1914.12,1915.15 1 1 -std/encoding/xml/xml.go:1916.12,1917.15 1 1 -std/encoding/xml/xml.go:1918.13,1919.16 1 1 -std/encoding/xml/xml.go:1920.13,1921.22 1 1 -std/encoding/xml/xml.go:1924.4,1924.15 1 1 -std/encoding/xml/xml.go:1925.13,1926.15 1 1 -std/encoding/xml/xml.go:1927.11,1928.61 1 1 -std/encoding/xml/xml.go:1932.4,1932.12 1 1 -std/encoding/xml/xml.go:1921.22,1922.13 1 1 -std/encoding/xml/xml.go:1928.61,1930.10 2 1 -std/encoding/xml/xml.go:1934.55,1936.4 1 0 -std/encoding/xml/xml.go:1937.41,1939.4 1 0 -std/encoding/xml/xml.go:1948.42,1951.26 3 1 -std/encoding/xml/xml.go:1982.2,1982.25 1 1 -std/encoding/xml/xml.go:1951.26,1954.12 3 1 -std/encoding/xml/xml.go:1978.3,1980.11 3 1 -std/encoding/xml/xml.go:1955.12,1956.17 1 1 -std/encoding/xml/xml.go:1957.13,1958.17 1 1 -std/encoding/xml/xml.go:1959.12,1960.16 1 1 -std/encoding/xml/xml.go:1961.12,1962.15 1 1 -std/encoding/xml/xml.go:1963.12,1964.15 1 1 -std/encoding/xml/xml.go:1965.13,1966.16 1 1 -std/encoding/xml/xml.go:1967.13,1968.15 1 1 -std/encoding/xml/xml.go:1969.13,1970.15 1 1 -std/encoding/xml/xml.go:1971.11,1972.61 1 1 -std/encoding/xml/xml.go:1976.4,1976.12 1 1 -std/encoding/xml/xml.go:1972.61,1974.10 2 0 -std/encoding/xml/xml.go:1988.36,1990.2 1 1 -std/encoding/xml/xml.go:2000.45,2001.17 1 1 -std/encoding/xml/xml.go:2004.2,2004.47 1 1 -std/encoding/xml/xml.go:2007.2,2007.6 1 1 -std/encoding/xml/xml.go:2026.2,2027.12 2 1 -std/encoding/xml/xml.go:2001.17,2003.3 1 1 -std/encoding/xml/xml.go:2004.47,2006.3 1 0 -std/encoding/xml/xml.go:2007.6,2009.42 2 1 -std/encoding/xml/xml.go:2024.3,2024.12 1 1 -std/encoding/xml/xml.go:2009.42,2011.44 1 1 -std/encoding/xml/xml.go:2014.4,2014.50 1 1 -std/encoding/xml/xml.go:2017.4,2017.22 1 1 -std/encoding/xml/xml.go:2011.44,2013.5 1 0 -std/encoding/xml/xml.go:2014.50,2016.5 1 0 -std/encoding/xml/xml.go:2018.9,2019.40 1 1 -std/encoding/xml/xml.go:2022.4,2022.9 1 1 -std/encoding/xml/xml.go:2019.40,2021.5 1 0 -std/encoding/xml/xml.go:2032.39,2037.15 3 1 -std/encoding/xml/xml.go:2040.2,2041.13 2 1 -std/encoding/xml/xml.go:2044.2,2044.33 1 1 -std/encoding/xml/xml.go:2047.2,2048.15 2 1 -std/encoding/xml/xml.go:2051.2,2051.21 1 1 -std/encoding/xml/xml.go:2037.15,2039.3 1 1 -std/encoding/xml/xml.go:2041.13,2043.3 1 0 -std/encoding/xml/xml.go:2044.33,2046.3 1 1 -std/encoding/xml/xml.go:2048.15,2050.3 1 0 diff --git a/src/encoding/xml/playgroud_test.go b/src/encoding/xml/playgroud_test.go deleted file mode 100644 index eb064e77fc7829..00000000000000 --- a/src/encoding/xml/playgroud_test.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package xml_test - -//func Example_textMarshalXML2() { -// blob := ` -// -// small -// regular -// large -// unrecognized -// small -// normal -// small -// large -// ` -// var inventory struct { -// Sizes []Size `xml:"size"` -// } -// if err := xml.Unmarshal([]byte(blob), &inventory); err != nil { -// log.Fatal(err) -// } -// -// counts := make(map[Size]int) -// for _, size := range inventory.Sizes { -// counts[size] += 1 -// } -// -// //fmt.Fprintf(os.Stderr, "Inventory Counts:\n* Small: %d\n* Large: %d\n* Unrecognized: %d\n", -// // counts[Small], counts[Large], counts[Unrecognized]) -// -// -// // Output: -// // Inventory Counts: -// // * Small: 3 -// // * Large: 2 -// // * Unrecognized: 3 -//}