Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for wantReg (0.24 sec)

  1. cmd/data-usage-cache_gen.go

    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "ObjSizes")
    				return
    			}
    			if zb0002 != uint32(dataUsageBucketLen) {
    				err = msgp.ArrayError{Wanted: uint32(dataUsageBucketLen), Got: zb0002}
    				return
    			}
    			for za0001 := range z.ObjSizes {
    				z.ObjSizes[za0001], err = dc.ReadUint64()
    				if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 100.8K bytes
    - Viewed (0)
  2. pkg/config/validation/validation_test.go

    			_, err := v.Unwrap()
    			if err == nil && tt.out != "" {
    				t.Fatalf("validateServerPort(%v) = nil, wanted %q", tt.in, tt.out)
    			} else if err != nil && tt.out == "" {
    				t.Fatalf("validateServerPort(%v) = %v, wanted nil", tt.in, err)
    			} else if err != nil && !strings.Contains(err.Error(), tt.out) {
    				t.Fatalf("validateServerPort(%v) = %v, wanted %q", tt.in, err, tt.out)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  3. src/database/sql/sql_test.go

    	}
    	reset := func() { s = connRequestSet{} }
    
    	t.Run("add-delete", func(t *testing.T) {
    		reset()
    		wantLen(0)
    		dh := s.Add(nil)
    		wantLen(1)
    		if !s.Delete(dh) {
    			t.Fatal("failed to delete")
    		}
    		wantLen(0)
    		if s.Delete(dh) {
    			t.Error("delete worked twice")
    		}
    		wantLen(0)
    	})
    	t.Run("take-before-delete", func(t *testing.T) {
    		reset()
    		ch1 := make(chan connRequest)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  4. src/crypto/x509/x509_test.go

    			t.Errorf("#%d: calculated bit-length of %d for %x, wanted %d", i, got, test.bytes, test.bitLen)
    		}
    	}
    }
    
    func TestVerifyEmptyCertificate(t *testing.T) {
    	if _, err := new(Certificate).Verify(VerifyOptions{}); err != errNotParsed {
    		t.Errorf("Verifying empty certificate resulted in unexpected error: %q (wanted %q)", err, errNotParsed)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/runtime/framework_test.go

    	checkLatency(t, value)
    }
    
    func collectAndComparePermitWaitDuration(t *testing.T, wantRes string) {
    	m := metrics.PermitWaitDuration.WithLabelValues(wantRes)
    	count, err := testutil.GetHistogramMetricCount(m)
    	if err != nil {
    		t.Errorf("Failed to get %s sampleCount, err: %v", metrics.PermitWaitDuration.Name, err)
    	}
    	if wantRes == "" {
    		if count != 0 {
    			t.Errorf("Expect 0 sample, got: %v", count)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    		}
    	}
    
    	wantLog(func() {
    		mustGet(ts.URL + "/")
    		mustGet(ts.URL + "/close")
    	}, StateNew, StateActive, StateIdle, StateActive, StateClosed)
    
    	wantLog(func() {
    		mustGet(ts.URL + "/")
    		mustGet(ts.URL+"/", "Connection", "close")
    	}, StateNew, StateActive, StateIdle, StateActive, StateClosed)
    
    	wantLog(func() {
    		mustGet(ts.URL + "/hijack")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  7. cmd/storage-datatypes_gen.go

    	var zb0001 uint32
    	zb0001, err = dc.ReadArrayHeader()
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	if zb0001 != 18 {
    		err = msgp.ArrayError{Wanted: 18, Got: zb0001}
    		return
    	}
    	z.Total, err = dc.ReadUint64()
    	if err != nil {
    		err = msgp.WrapError(err, "Total")
    		return
    	}
    	z.Free, err = dc.ReadUint64()
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 130.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    		}
    		if got := err.Error(); c.wantInitErr != got {
    			t.Fatalf("expected initialization error %q but got %q", c.wantInitErr, got)
    		}
    		return
    	}
    	if expectInitErr {
    		t.Fatalf("wanted initialization error %q but got none", c.wantInitErr)
    	}
    
    	if len(c.wantHealthErrPrefix) > 0 {
    		if err := wait.PollUntilContextTimeout(ctx, time.Second, time.Minute, true, func(context.Context) (bool, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    			// since Closing this early in the loop would risk
    			// making connections be re-used for the wrong reason.
    			defer res.Body.Close()
    
    			if res.ContentLength != int64(wantLen) {
    				t.Errorf("%s res.ContentLength = %d; want %d", path, res.ContentLength, wantLen)
    			}
    			got, err := io.ReadAll(res.Body)
    			if string(got) != msg || err != nil {
    				t.Errorf("%s ReadAll(Body) = %q, %v; want %q, nil", path, string(got), err, msg)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    				}
    			}
    			if tc.expectMilestones != nil {
    				if !reflect.DeepEqual(milestones, tc.expectMilestones) {
    					t.Errorf("Unexpected milestones: wanted %v, got %v", tc.expectMilestones, milestones)
    				}
    			}
    		})
    	}
    }
    
    func isQualifiedResource(err error, kind, group string) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
Back to top