Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for wantnil (0.1 sec)

  1. src/net/http/transport_dial_test.go

    	// First request creates a new connection.
    	rt1 := dt.roundTrip()
    	c1 := dt.wantDial()
    	c1.finish(nil)
    	rt1.wantDone(c1)
    
    	// Second request is made while the first request is still using its connection,
    	// so it goes on a new connection.
    	rt2 := dt.roundTrip()
    	c2 := dt.wantDial()
    	c2.finish(nil)
    	rt2.wantDone(c2)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. src/slices/sort_test.go

    		t.Run(fmt.Sprintf("%v", tt.data), func(t *testing.T) {
    			gotMin := Min(tt.data)
    			if gotMin != tt.wantMin {
    				t.Errorf("Min got %v, want %v", gotMin, tt.wantMin)
    			}
    
    			gotMinFunc := MinFunc(tt.data, intCmp)
    			if gotMinFunc != tt.wantMin {
    				t.Errorf("MinFunc got %v, want %v", gotMinFunc, tt.wantMin)
    			}
    
    			gotMax := Max(tt.data)
    			if gotMax != tt.wantMax {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/runtime/symtabinl_test.go

    			// this robust.
    			continue
    		}
    		for ; uf.valid(); uf = u.next(uf) {
    			file, line := u.fileLine(uf)
    			const wantFile = "symtabinl_test.go"
    			if !stringslite.HasSuffix(file, wantFile) {
    				t.Errorf("tiuTest+%#x: want file ...%s, got %s", pc-pc1, wantFile, file)
    			}
    
    			sf := u.srcFunc(uf)
    
    			name := sf.name()
    			const namePrefix = "runtime."
    			if stringslite.HasPrefix(name, namePrefix) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. cmd/erasure-common.go

    		}, index)
    	}
    
    	dataArray := make([]ReadMultipleResp, 0, len(req.Files))
    	// Merge results. They should come in order from each.
    	for _, wantFile := range req.Files {
    		quorum := 0
    		toAdd := ReadMultipleResp{
    			Bucket: req.Bucket,
    			Prefix: req.Prefix,
    			File:   wantFile,
    		}
    		for i := range resps {
    			if disks[i] == nil {
    				continue
    			}
    			select {
    			case <-ctx.Done():
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. src/os/dir_windows.go

    			break
    		}
    		// We lost the race: try again.
    		d.close()
    	}
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if d.buf == nil {
    		d.buf = dirBufPool.Get().(*[]byte)
    	}
    
    	wantAll := n <= 0
    	if wantAll {
    		n = -1
    	}
    	for n != 0 {
    		// Refill the buffer if necessary
    		if d.bufp == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top