Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for WantOK (0.1 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. 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)
  3. 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)
  4. 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)
Back to top