Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 94 of 94 for HelloWorld (0.19 sec)

  1. src/cmd/link/link_test.go

    		t.Fatalf("build failed: %v\n%s", err, out)
    	}
    
    	fi, err := os.Stat(exe)
    	if err != nil {
    		t.Fatalf("failed to stat output file: %v", err)
    	}
    
    	// The test program is not much different from a helloworld, which is
    	// typically a little over 1 MB. We allow 5 MB. If the bad stmp is live,
    	// it will be over 10 MB.
    	const want = 5 << 20
    	if got := fi.Size(); got > want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  2. src/encoding/xml/marshal_test.go

    	}
    }
    
    // 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 {
    		t.Errorf("Unmarshal: expected error, got nil")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    		n = Copy(val, ValueOf("hello"))
    		if expecting := []byte("hello___"); n != 5 || !bytes.Equal(s, expecting) {
    			t.Errorf("got n = %d, s = %s, expecting n = 5, s = %s", n, s, expecting)
    		}
    
    		n = Copy(val, ValueOf("helloworld"))
    		if expecting := []byte("hellowor"); n != 8 || !bytes.Equal(s, expecting) {
    			t.Errorf("got n = %d, s = %s, expecting n = 8, s = %s", n, s, expecting)
    		}
    	})
    	t.Run("Array", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. src/net/http/serve_test.go

    	req := reqBytes(`PUT /readbody HTTP/1.1
    User-Agent: PycURL/7.22.0
    Host: 127.0.0.1:9000
    Accept: */*
    Expect: 100-continue
    Content-Length: 10
    
    HelloWorld
    
    `)
    	var buf bytes.Buffer
    	conn := &rwTestConn{
    		Reader: bytes.NewReader(req),
    		Writer: &buf,
    		closec: make(chan bool, 1),
    	}
    	ln := &oneConnListener{conn: conn}
    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