Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for wantnil (0.43 sec)

  1. src/iter/pull_test.go

    				}
    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %v, want %d, %v", v, ok, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    func TestPull2(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/vet/vet_test.go

    	}
    }
    
    // TestTags verifies that the -tags argument controls which files to check.
    func TestTags(t *testing.T) {
    	t.Parallel()
    	for tag, wantFile := range map[string]int{
    		"testtag":     1, // file1
    		"x testtag y": 1,
    		"othertag":    2,
    	} {
    		tag, wantFile := tag, wantFile
    		t.Run(tag, func(t *testing.T) {
    			t.Parallel()
    			t.Logf("-tags=%s", tag)
    			cmd := vetCmd(t, "-tags="+tag, "tagtest")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. 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)
  8. src/testing/testing_test.go

    	// marked as failed, and that failure should propagate up to the parents.
    	cFail := bytes.Count(out, []byte("--- FAIL:"))
    	wantFail := 0
    	if race.Enabled {
    		wantFail = 4
    	}
    	if cFail != wantFail {
    		t.Errorf(`got %d "--- FAIL:" lines, want %d`, cReport, wantReport)
    	}
    }
    
    func TestRaceInCleanup(t *testing.T) {
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  9. pilot/pkg/security/authz/builder/builder_test.go

    	for i, got := range gots {
    		gotYaml, err := protomarshal.ToYAML(got)
    		if err != nil {
    			t.Fatalf("failed to convert to YAML: %v", err)
    		}
    
    		wantFile := basePath + baseDir + wants[i]
    		util.RefreshGoldenFile(t, []byte(gotYaml), wantFile)
    		want := yamlConfig(t, wantFile, forTCP)
    		wantYaml, err := protomarshal.ToYAML(want)
    		if err != nil {
    			t.Fatalf("failed to convert to YAML: %v", err)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    				l:            &sync.Mutex{},
    				lastResponse: &kmsPluginHealthzResponse{},
    			},
    			wantTTL: kmsPluginHealthzNegativeTTL,
    		},
    	}
    
    	for _, tt := range testCases {
    		t.Run(tt.desc, func(t *testing.T) {
    			_ = tt.probe.check()
    			if tt.probe.ttl != tt.wantTTL {
    				t.Fatalf("want ttl %v, got ttl %v", tt.wantTTL, tt.probe.ttl)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
Back to top