Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for 999999999Z (0.05 sec)

  1. src/time/time_test.go

    		}
    	}
    }
    
    func TestAddToExactSecond(t *testing.T) {
    	// Add an amount to the current time to round it up to the next exact second.
    	// This test checks that the nsec field still lies within the range [0, 999999999].
    	t1 := Now()
    	t2 := t1.Add(Second - Duration(t1.Nanosecond()))
    	sec := (t1.Second() + 1) % 60
    	if t2.Second() != sec || t2.Nanosecond() != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    func TestHandlerFinishSkipBigContentLengthRead(t *testing.T) {
    	setParallel(t)
    	conn := newTestConn()
    	conn.readBuf.WriteString(
    		"POST / HTTP/1.1\r\n" +
    			"Host: test\r\n" +
    			"Content-Length: 9999999999\r\n" +
    			"\r\n" + strings.Repeat("a", 1<<20))
    
    	ls := &oneConnListener{conn}
    	var inHandlerLen int
    	go Serve(ls, HandlerFunc(func(rw ResponseWriter, req *Request) {
    		inHandlerLen = conn.readBuf.Len()
    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