Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 259 for derrs (0.06 sec)

  1. src/fmt/errors.go

    		err = w
    	default:
    		if p.reordered {
    			slices.Sort(p.wrappedErrs)
    		}
    		var errs []error
    		for i, argNum := range p.wrappedErrs {
    			if i > 0 && p.wrappedErrs[i-1] == argNum {
    				continue
    			}
    			if e, ok := a[argNum].(error); ok {
    				errs = append(errs, e)
    			}
    		}
    		err = &wrapErrors{s, errs}
    	}
    	p.free()
    	return err
    }
    
    type wrapError struct {
    	msg string
    	err error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. pkg/apis/apps/validation/validation_test.go

    			}
    			// Run the tests
    			if errs := ValidateDaemonSetUpdate(&errorCase.update, &errorCase.old, corevalidation.PodValidationOptions{}); len(errs) != errorCase.expectedErrNum {
    				t.Errorf("%q expected %d errors, but got %d error: %v", testName, errorCase.expectedErrNum, len(errs), errs)
    			} else {
    				t.Logf("(PASS) %q got errors %v", testName, errs)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/validation/validation_test.go

    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := IsValidIP(field.NewPath(""), tc.in)
    			if tc.err == "" {
    				if len(errs) != 0 {
    					t.Errorf("expected %q to be valid but got: %v", tc.in, errs)
    				}
    			} else {
    				if len(errs) != 1 {
    					t.Errorf("expected %q to have 1 error but got: %v", tc.in, errs)
    				} else if !strings.Contains(errs[0].Detail, tc.err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 04:51:54 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  4. pkg/controlplane/apiserver/options/validation_test.go

    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := tc.options.Validate()
    			if len(errs) > 0 && !tc.expectErrors {
    				t.Errorf("expected no errors, errors found %+v", errs)
    			}
    
    			if len(errs) == 0 && tc.expectErrors {
    				t.Errorf("expected errors, no errors found")
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. cmd/post-policy-fan-out.go

    			}
    			hr, err := hash.NewReaderWithOpts(ctx, bytes.NewReader(fanOutBuf), hopts)
    			if err != nil {
    				errs[idx] = err
    				return
    			}
    
    			reader := NewPutObjReader(hr)
    			defer func() {
    				if err := reader.Close(); err != nil {
    					errs[idx] = err
    				}
    				if err := hr.Close(); err != nil {
    					errs[idx] = err
    				}
    			}()
    
    			userDefined := make(map[string]string, len(req.UserMetadata))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. cmd/import-boss/main.go

    	}
    	if len(restrictionFiles) == 0 {
    		return nil
    	}
    
    	klog.V(2).Infof("verifying pkg %q (%s)", pkg.PkgPath, pkgDir)
    	var errs []error
    	errs = append(errs, boss.verifyRules(pkg, restrictionFiles)...)
    	errs = append(errs, boss.verifyInverseRules(pkg, restrictionFiles)...)
    	return errs
    }
    
    // packageDir tries to figure out the directory of the specified package.
    func packageDir(pkg *packages.Package) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. cmd/import-boss/main_test.go

    		}
    	}
    }
    
    func checkAllErrorStrings(t *testing.T, errs []error, expect []string) {
    	t.Helper()
    	if len(errs) != len(expect) {
    		t.Fatalf("expected %d errors, got %d: %q", len(expect), len(errs), errs)
    	}
    
    	for _, str := range expect {
    		found := false
    		for _, err := range errs {
    			if strings.HasPrefix(err.Error(), str) {
    				found = true
    				break
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. pkg/apis/storage/validation/validation_test.go

    			shouldSucceed: false,
    		},
    	}
    
    	for testName, testCase := range cases {
    		errs := ValidateStorageClass(testCase.class)
    		if testCase.shouldSucceed && len(errs) != 0 {
    			t.Errorf("Expected success for test %q, got %v", testName, errs)
    		}
    		if !testCase.shouldSucceed && len(errs) == 0 {
    			t.Errorf("Expected failure for test %q, got success", testName)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  9. operator/pkg/apis/istio/v1alpha1/validation/validation.go

    	if !values.GetGateways().GetIstioIngressgateway().GetRunAsRoot().GetValue() {
    		errs = util.AppendErrs(errs, validateGateways(spec.GetComponents().GetIngressGateways(), "istio-ingressgateway"))
    	}
    	if !values.GetGateways().GetIstioEgressgateway().GetRunAsRoot().GetValue() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 20:02:28 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. pkg/apis/autoscaling/validation/validation_test.go

    		nonZeroCase := nonZeroMinReplicasCases[i]
    
    		if errs := ValidateHorizontalPodAutoscalerUpdate(&nonZeroCase, &zeroCase); len(errs) != 0 {
    			t.Errorf("expected success: %v", errs)
    		}
    
    		if errs := ValidateHorizontalPodAutoscalerUpdate(&zeroCase, &nonZeroCase); len(errs) != 0 {
    			t.Errorf("expected success: %v", errs)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
Back to top