Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for volerr (0.23 sec)

  1. test/varerr.go

    Robert Griesemer <******@****.***> 1607048150 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 449 bytes
    - Viewed (0)
  2. operator/pkg/tpath/struct_test.go

    				t.Fatal(err)
    			}
    			GotOut, GotFound, gotErr := GetFromStructPath(rnode, tt.path)
    			if GotFound != tt.wantFound {
    				t.Fatalf("GetFromStructPath(%s): gotFound:%v, wantFound:%v", tt.desc, GotFound, tt.wantFound)
    			}
    			if gotErr, wantErr := errToString(gotErr), tt.wantErr; gotErr != wantErr {
    				t.Fatalf("GetFromStructPath(%s): gotErr:%s, wantErr:%s", tt.desc, gotErr, wantErr)
    			}
    			if tt.wantErr != "" || !tt.wantFound {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. operator/pkg/validate/validate_values_test.go

    			if err != nil {
    				t.Fatalf("yaml.Unmarshal(%s): got error %s", tt.desc, err)
    			}
    			errs := CheckValues(util.MustStruct(root))
    			if gotErr, wantErr := errs, tt.wantErrs; !util.EqualErrors(gotErr, wantErr) {
    				t.Errorf("CheckValues(%s)(%v): gotErr:%s, wantErr:%s", tt.desc, tt.yamlStr, gotErr, wantErr)
    			}
    		})
    	}
    }
    
    func TestValidateValuesFromProfile(t *testing.T) {
    	tests := []struct {
    		profile  string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 13:43:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. security/pkg/server/ca/authenticate/oidc_test.go

    			}
    			ctx = metadata.NewIncomingContext(ctx, md)
    
    			actualCaller, err := authenticator.Authenticate(security.AuthContext{GrpcContext: ctx})
    			gotErr := err != nil
    			if gotErr != tc.expectErr {
    				t.Errorf("gotErr (%v) whereas expectErr (%v)", gotErr, tc.expectErr)
    			}
    			if gotErr {
    				return
    			}
    			expectedCaller := &security.Caller{
    				AuthSource: security.AuthSourceIDToken,
    				Identities: []string{tc.expectedID},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. src/os/exec/lp_windows.go

    					return dotf, dotErr
    				}
    			}
    
    			if !filepath.IsAbs(f) {
    				if execerrdot.Value() != "0" {
    					// If this is the same relative path that we already found,
    					// dotErr is non-nil and we already checked it above.
    					// Otherwise, record this path as the one to which we must resolve,
    					// with or without a dotErr.
    					if dotErr == nil {
    						dotf, dotErr = f, &Error{file, ErrDot}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. operator/pkg/util/label_test.go

    			gotErr := SetLabel(resource, tt.wantLabel, tt.wantValue)
    			resourceAccessor, _ := meta.Accessor(resource)
    			labels := resourceAccessor.GetLabels()
    			if gotVal, ok := labels[tt.wantLabel]; !ok || gotVal != tt.wantValue || gotErr != tt.wantErr {
    				t.Errorf("%s: ok: %v, got value: %v, want value: %v, got error: %v, want error: %v", tt.desc, ok, gotVal, tt.wantValue, gotErr, tt.wantErr)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  7. pkg/kubelet/winstats/perfcounters_test.go

    			if pollErr := wait.Poll(100*time.Millisecond, 5*perfCounterUpdatePeriod, func() (bool, error) {
    				data, err := counter.getData()
    				if err != nil {
    					return false, err
    				}
    
    				if data != 0 {
    					return true, nil
    				}
    
    				return false, nil
    			}); pollErr != nil {
    				t.Fatalf("Encountered error: `%v'", pollErr)
    				return
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. cmd/xl-storage_windows_test.go

    	}
    
    	// Create volume to use in conjunction with other StorageAPI's file API(s)
    	err = fs.MakeVol(context.Background(), "voldir")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for i, test := range testCases {
    		t.Run(fmt.Sprint(i), func(t *testing.T) {
    			err = fs.AppendFile(context.Background(), "voldir", test.objName, []byte("hello"))
    			if err != nil && test.pass {
    				t.Error(err)
    			} else if err == nil && !test.pass {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 29 06:35:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/json/json_test.go

    			t.Fatalf("expected error matching stdlib, got %v, %v", err, goerr)
    		} else {
    			t.Log(err)
    		}
    	}
    
    	{
    		var v *map[string]interface{}
    		err := Unmarshal([]byte(`{}`), v)
    		goerr := gojson.Unmarshal([]byte(`{}`), v)
    		if err == nil || goerr == nil || err.Error() != goerr.Error() {
    			t.Fatalf("expected error matching stdlib, got %v, %v", err, goerr)
    		} else {
    			t.Log(err)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 28 08:02:09 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  10. pkg/controller/ttlafterfinished/ttlafterfinished_controller_test.go

    		_, ctx := ktesting.NewTestContext(t)
    		logger := klog.FromContext(ctx)
    		gotTimeLeft, gotExpireAt, gotErr := timeLeft(logger, job, tc.since)
    		if tc.expectErr != (gotErr != nil) {
    			t.Errorf("%s: expected error is %t, got %t, error: %v", tc.name, tc.expectErr, gotErr != nil, gotErr)
    		}
    		if tc.expectErr && len(tc.expectErrStr) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 18 18:46:26 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top