- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 285 for errf (0.09 sec)
-
security/pkg/credentialfetcher/plugin/gce_test.go
t.Helper() var tokens []string var errs []error for i := 0; i < callReps; i++ { token, err := p.GetPlatformCredential() tokens = append(tokens, token) errs = append(errs, err) } return tokens, errs } func verifyError(t *testing.T, id string, errs []error, expectedErr error) { t.Helper() for _, err := range errs { if err == nil && expectedErr != nil || err != nil && expectedErr == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 03 18:09:59 UTC 2021 - 10.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go
} func TestEncode_Ptr(t *testing.T) { _, codec := GetTestScheme() tt := &runtimetesting.TestType1{A: "I am a pointer object"} data, err := runtime.Encode(codec, tt) obj2, err2 := runtime.Decode(codec, data) if err != nil || err2 != nil { t.Fatalf("Failure: '%v' '%v'\n%s", err, err2, data) } if _, ok := obj2.(*runtimetesting.TestType1); !ok { t.Fatalf("Got wrong type") } if !semantic.DeepEqual(obj2, tt) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 13.2K bytes - Viewed (0) -
pkg/config/crd/validator.go
if err := yaml.Unmarshal([]byte(item), obj); err != nil { return err } if ignorer != nil && ignorer.ShouldIgnore(obj.GetNamespace(), obj.GetName()) { continue } errs = multierror.Append(errs, v.ValidateCustomResource(obj)) } return errs.ErrorOrNil() } func (v *Validator) ValidateCustomResource(o runtime.Object) error { content, err := runtime.DefaultUnstructuredConverter.ToUnstructured(o) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 17 15:38:40 UTC 2023 - 8.3K bytes - Viewed (0) -
operator/pkg/apis/istio/common.go
iops := &v1alpha1.IstioOperatorSpec{} if err := util.UnmarshalWithJSONPB(iopsYAML, iops, false); err != nil { return nil, fmt.Errorf("could not unmarshal the merged YAML: %s\n\nYAML:\n%s", err, iopsYAML) } if errs := validate.CheckIstioOperatorSpec(iops, true); len(errs) != 0 { return iops, fmt.Errorf(errs.Error()) } return iops, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 23 17:19:38 UTC 2022 - 2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
//sysnb Setpgid(pid int, pgid int) (err error) = SYS_SETPGID //sysnb Setrlimit(resource int, lim *Rlimit) (err error) //sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID //sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID //sysnb Setsid() (pid int, err error) = SYS_SETSID //sys Setuid(uid int) (err error) = SYS_SETUID //sys Setgid(uid int) (err error) = SYS_SETGID //sys Shutdown(fd int, how int) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 84.4K bytes - Viewed (0) -
pkg/apis/discovery/validation/validation_test.go
}}, }, }, } for name, testCase := range testCases { t.Run(name, func(t *testing.T) { errs := ValidateEndpointSlice(testCase.endpointSlice) if len(errs) != testCase.expectedErrors { t.Errorf("Expected %d errors, got %d errors: %v", testCase.expectedErrors, len(errs), errs) } }) } } func TestValidateEndpointSliceCreate(t *testing.T) { standardMeta := metav1.ObjectMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 05 10:48:05 UTC 2023 - 23.9K bytes - Viewed (0) -
src/net/net_windows_test.go
} var err2 error out, err2 = os.ReadFile(f.Name()) if err2 != nil { return nil, err2 } if len(out) != 0 { return nil, fmt.Errorf("%s failed: %v: %q", args[0], err, string(removeUTF8BOM(out))) } return nil, fmt.Errorf("%s failed: %v", args[0], err) } out, err = os.ReadFile(f.Name()) if err != nil { return nil, err } return removeUTF8BOM(out), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.3K bytes - Viewed (0) -
pkg/controller/job/tracking_utils_test.go
if err := validateTerminatedPodsTrackingFinalizerTotal(metrics.Add, tc.wantAdd); err != nil { t.Errorf("Failed validating terminated_pods_tracking_finalizer_total(add): %v", err) } if err := validateTerminatedPodsTrackingFinalizerTotal(metrics.Delete, tc.wantDelete); err != nil { t.Errorf("Failed validating terminated_pods_tracking_finalizer_total(delete): %v", err) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 14 05:40:02 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/registry/core/serviceaccount/storage/token.go
// call static validation, then validating admission if errs := authenticationvalidation.ValidateTokenRequest(req); len(errs) != 0 { return nil, errors.NewInvalid(gvk.GroupKind(), "", errs) } if createValidation != nil { if err := createValidation(ctx, obj.DeepCopyObject()); err != nil { return nil, err } } var ( pod *api.Pod node *api.Node secret *api.Secret
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 05 10:24:31 UTC 2024 - 10K bytes - Viewed (0) -
src/cmd/cover/html.go
if err != nil { return err } out, err = os.Create(filepath.Join(dir, "coverage.html")) } else { out, err = os.Create(outfile) } if err != nil { return err } err = htmlTemplate.Execute(out, d) if err2 := out.Close(); err == nil { err = err2 } if err != nil { return err } if outfile == "" { if !browser.Open("file://" + out.Name()) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 14:33:36 UTC 2022 - 6.8K bytes - Viewed (0)