- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for errOK (0.04 sec)
-
pkg/registry/core/pod/storage/storage_test.go
podUIDGetter func(pod *api.Pod) types.UID podResourceVersionGetter func(pod *api.Pod) string errOK func(error) bool expectedNodeName string }{ "originUID-originResourceVersion": { podUIDGetter: originUID, podResourceVersionGetter: originResourceVersion, errOK: noError, expectedNodeName: "machine", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 07:18:44 UTC 2024 - 38.8K bytes - Viewed (0) -
pkg/registry/apps/deployment/storage/storage_test.go
testCases := map[string]struct { rollback apps.DeploymentRollback errOK func(error) bool }{ "normal": { rollback: apps.DeploymentRollback{ Name: name, UpdatedAnnotations: map[string]string{}, RollbackTo: apps.RollbackConfig{Revision: 1}, }, errOK: func(err error) bool { return err == nil }, }, "noAnnotation": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:17:45 UTC 2023 - 19.7K bytes - Viewed (0) -
src/go/build/build_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 16:24:01 UTC 2023 - 23.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
strObj, _, _ := types.LookupFieldOrMethod(typ, false, pass.Pkg, "String") strMethod, strOk := strObj.(*types.Func) errObj, _, _ := types.LookupFieldOrMethod(typ, false, pass.Pkg, "Error") errMethod, errOk := errObj.(*types.Func) if !strOk && !errOk { return "", false } // inScope returns true if e is in the scope of f. inScope := func(e ast.Expr, f *types.Func) bool { return f.Scope() != nil && f.Scope().Contains(e.Pos())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0)