Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIssue16158 (0.11 sec)

  1. src/encoding/xml/marshal_test.go

    	if buf.String() != want {
    		t.Errorf("enc.EncodeToken: expected %q; got %q", want, buf.String())
    	}
    }
    
    // Issue 16158. Decoder.unmarshalAttr ignores the return value of copyValue.
    func TestIssue16158(t *testing.T) {
    	const data = `<foo b="HELLOWORLD"></foo>`
    	err := Unmarshal([]byte(data), &struct {
    		B byte `xml:"b,attr,omitempty"`
    	}{})
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
Back to top