- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for CheckError (0.41 sec)
-
plugin/pkg/admission/gc/gc_admission_test.go
subresource string oldObj runtime.Object newObj runtime.Object checkError func(error) bool }{ { name: "super-user, create, no objectref change", username: "super", resource: api.SchemeGroupVersion.WithResource("pods"), newObj: &api.Pod{}, checkError: expectNoError, }, { name: "super-user, create, objectref change",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/api/service/util_test.go
_, err = GetLoadBalancerSourceRanges(&svc) if err == nil { t.Errorf("Expected error parsing: %q", v) } } checkError("10.0.0.1/33") checkError("foo.bar") checkError("10.0.0.1/32,*") checkError("10.0.0.1/32,") checkError("10.0.0.1/32, ") checkError("10.0.0.1") checkOK := func(v string) utilnet.IPNetSet { t.Helper() annotations := make(map[string]string)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 01 15:18:45 UTC 2023 - 7.6K bytes - Viewed (0) -
plugin/pkg/admission/storage/persistentvolume/resize/admission_test.go
} tests := []struct { name string resource schema.GroupVersionResource subresource string oldObj runtime.Object newObj runtime.Object checkError func(error) bool }{ { name: "pvc-resize, update, no error", resource: api.SchemeGroupVersion.WithResource("persistentvolumeclaims"), oldObj: &api.PersistentVolumeClaim{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 21 13:31:28 UTC 2023 - 7.7K bytes - Viewed (0) -
pkg/api/v1/service/util_test.go
_, err = GetLoadBalancerSourceRanges(&svc) if err == nil { t.Errorf("Expected error parsing: %q", v) } } checkError("10.0.0.1/33") checkError("foo.bar") checkError("10.0.0.1/32,*") checkError("10.0.0.1/32,") checkError("10.0.0.1/32, ") checkError("10.0.0.1") checkOK := func(v string) utilnet.IPNetSet { t.Helper() annotations := make(map[string]string)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 01 15:18:45 UTC 2023 - 8.8K bytes - Viewed (0) -
pilot/pkg/security/authz/model/model.go
if err := r.checkError(action, err); err != nil { return nil, err } if p != nil { permissions = append(permissions, p) } } } else { var or []*rbacpb.Permission for _, value := range r.values { p, err := r.g.permission(r.key, value, forTCP) if err := r.checkError(action, err); err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 25 10:39:25 UTC 2024 - 13.8K bytes - Viewed (0) -
src/testing/quick/quick.go
// A CheckError is the result of Check finding an error. type CheckError struct { Count int In []any } func (s *CheckError) Error() string { return fmt.Sprintf("#%d: failed on input %s", s.Count, toString(s.In)) } // A CheckEqualError is the result [CheckEqual] finding an error. type CheckEqualError struct { CheckError Out1 []any Out2 []any }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0) -
platforms/core-runtime/io/src/main/java/org/gradle/internal/io/LinePerThreadBufferingOutputStream.java
@Override public PrintStream append(CharSequence csq, int start, int end) { getStream().append(csq, start, end); return this; } @Override public boolean checkError() { return getStream().checkError(); } @Override public void close() { PrintStream currentStream = maybeGetStream(); if (currentStream != null) { stream.remove();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 08:51:14 UTC 2024 - 6K bytes - Viewed (0) -
src/testing/quick/quick_test.go
} func TestFailure(t *testing.T) { f := func(x int) bool { return false } err := Check(f, nil) if err == nil { t.Errorf("Check didn't return an error") } if _, ok := err.(*CheckError); !ok { t.Errorf("Error was not a CheckError: %s", err) } err = CheckEqual(fUint, fUint32, nil) if err == nil { t.Errorf("#1 CheckEqual didn't return an error") } if _, ok := err.(SetupError); !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go
if len(stmts) < 2 { // The call to the http function is the last statement of the block. return true } // Skip cases in which the call is wrapped by another (#52661). // Example: resp, err := checkError(http.Get(url)) if ncalls > 1 { return true } asg, ok := stmts[0].(*ast.AssignStmt) if !ok { return true // the first statement is not assignment. } resp := rootIdent(asg.Lhs[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 5K bytes - Viewed (0) -
src/go/scanner/scanner_test.go
} type errorCollector struct { cnt int // number of errors encountered msg string // last error message encountered pos token.Position // last error position encountered } func checkError(t *testing.T, src string, tok token.Token, pos int, lit, err string) { var s Scanner var h errorCollector eh := func(pos token.Position, msg string) { h.cnt++ h.msg = msg h.pos = pos }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 15:38:31 UTC 2023 - 34.6K bytes - Viewed (0)