Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestThree (0.16 sec)

  1. src/encoding/xml/read_test.go

    	}
    }
    
    const OK = "OK"
    const withoutNameTypeData = `
    <?xml version="1.0" charset="utf-8"?>
    <Test3 Attr="OK" />`
    
    type TestThree struct {
    	XMLName Name   `xml:"Test3"`
    	Attr    string `xml:",attr"`
    }
    
    func TestUnmarshalWithoutNameType(t *testing.T) {
    	var x TestThree
    	if err := Unmarshal([]byte(withoutNameTypeData), &x); err != nil {
    		t.Fatalf("Unmarshal: %s", err)
    	}
    	if x.Attr != OK {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    		2: {"/testTwo?a=1&b=2&a=3", "GET", "a=1&b=2&a=3", true},
    		3: {"/testTwo?", "GET", "", true},
    		4: {"/testThree?foo", "GET", "foo", true},
    		5: {"/testThree/?foo", "GET", "foo:bar", true},
    		6: {"/testThree?foo", "CONNECT", "foo", true},
    		7: {"/testThree/?foo", "CONNECT", "foo:bar", true},
    
    		// canonicalization or not
    		8: {"/testOne/foo/..?foo", "GET", "foo", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top