Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for WantOK (0.12 sec)

  1. internal/s3select/sql/value_test.go

    			if gotOk := tt.fields.a.SameTypeAs(tt.fields.b); gotOk != tt.wantOk {
    				t.Errorf("SameTypeAs() = %v, want %v", gotOk, tt.wantOk)
    			}
    		})
    	}
    }
    
    func TestValue_Equals(t *testing.T) {
    	type fields struct {
    		a, b Value
    	}
    	type test struct {
    		name   string
    		fields fields
    		wantOk bool
    	}
    	var tests []test
    	for i := range valueBuilders {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/version/helpers_test.go

    		v                string
    		wantMajorVersion int
    		wantVType        versionType
    		wantMinorVersion int
    		wantOk           bool
    	}{
    		{
    			name:             "invaild version for ga",
    			v:                "v1.1",
    			wantMajorVersion: 0,
    			wantVType:        0,
    			wantMinorVersion: 0,
    			wantOk:           false,
    		},
    		{
    			name:             "invaild version for alpha",
    			v:                "v1alpha1.1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 19 02:46:55 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. cmd/metacache-entries_test.go

    		wantSelected *metaCacheEntry
    		wantOk       bool
    	}{
    		{
    			name:         "consistent",
    			m:            metaCacheEntries{inputSerialized[0], inputSerialized[0], inputSerialized[0], inputSerialized[0]},
    			r:            metadataResolutionParams{dirQuorum: 4, objQuorum: 4, strict: false},
    			wantSelected: &inputSerialized[0],
    			wantOk:       true,
    		},
    		{
    			name:         "consistent-strict",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
  4. pkg/serviceaccount/openidmetadata_test.go

    		t.Run(tt.Name, func(t *testing.T) {
    			resp, err := http.Get(s.URL + tt.Path)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			if tt.WantOK && (resp.StatusCode != http.StatusOK) {
    				t.Errorf("Get(%v)= %v, want %v", tt.Path, resp.StatusCode, http.StatusOK)
    			}
    			if !tt.WantOK && (resp.StatusCode != http.StatusNotFound) {
    				t.Errorf("Get(%v)= %v, want %v", tt.Path, resp.StatusCode, http.StatusNotFound)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 02 01:53:17 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  5. src/net/netip/netip_test.go

    	tests := []struct {
    		ip       []byte
    		wantAddr Addr
    		wantOK   bool
    	}{
    		{
    			ip:       []byte{10, 0, 0, 1},
    			wantAddr: mustIP("10.0.0.1"),
    			wantOK:   true,
    		},
    		{
    			ip:       []byte{0xfe, 0x80, 15: 0x01},
    			wantAddr: mustIP("fe80::01"),
    			wantOK:   true,
    		},
    		{
    			ip:       []byte{0, 1, 2},
    			wantAddr: Addr{},
    			wantOK:   false,
    		},
    		{
    			ip:       nil,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/fsys/fsys_test.go

    		{"subdir5/deleted.txt", "", true},
    	}
    
    	for _, tc := range testCases {
    		gotPath, gotOK := OverlayPath(tc.path)
    		if gotPath != tc.wantPath || gotOK != tc.wantOK {
    			t.Errorf("OverlayPath(%q): got %v, %v; want %v, %v",
    				tc.path, gotPath, gotOK, tc.wantPath, tc.wantOK)
    		}
    	}
    }
    
    func TestOpen(t *testing.T) {
    	initOverlay(t, `
    {
        "Replace": {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:52:11 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  7. pkg/scheduler/schedule_one_test.go

    			if err != test.wErr {
    				gotFitErr, gotOK := err.(*framework.FitError)
    				wantFitErr, wantOK := test.wErr.(*framework.FitError)
    				if gotOK != wantOK {
    					t.Errorf("Expected err to be FitError: %v, but got %v (error: %v)", wantOK, gotOK, err)
    				} else if gotOK {
    					if diff := cmp.Diff(wantFitErr, gotFitErr); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top