- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for newFunc (2.09 sec)
-
staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go
t.Cleanup(func() { server.Terminate(t) }) newFunc := func() runtime.Object { return &corev1.Endpoints{} } newListFunc := func() runtime.Object { return &corev1.EndpointsList{} } sc.Codec = apitesting.TestStorageCodec(codecs, corev1.SchemeGroupVersion) s, dFunc, err := factory.Create(*sc.ForResource(schema.GroupResource{Resource: "endpoints"}), newFunc, newListFunc, "") if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named_test.go
pkg := mustTypecheck(src, nil, nil) T := pkg.Scope().Lookup("T").Type().(*Named) // add a few more methods manually for _, name := range []string{"foo", "bar", "bal"} { m := NewFunc(nopos, pkg, name, nil /* don't care about signature */) T.AddMethod(m) } // check method order if i == 0 { // first round: collect methods in given order methods = make([]string, T.NumMethods())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 21:06:56 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/export_test.go
} type Conf struct { config *Config tb testing.TB fe Frontend } func (c *Conf) Frontend() Frontend { if c.fe == nil { pkg := types.NewPkg("my/import/path", "path") fn := ir.NewFunc(src.NoXPos, src.NoXPos, pkg.Lookup("function"), types.NewSignature(nil, nil, nil)) fn.DeclareParams(true) fn.LSym = &obj.LSym{Name: "my/import/path.function"} c.fe = TestFrontend{ t: c.tb,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 21:19:39 UTC 2024 - 3.2K bytes - Viewed (0) -
pkg/config/schema/kubeclient/common.go
}, ) setupInformer(opts, inf) return inf }) } func setupInformer(opts ktypes.InformerOptions, inf cache.SharedIndexInformer) { // It is important to set this in the newFunc rather than after InformerFor to avoid // https://github.com/kubernetes/kubernetes/issues/117869 if opts.ObjectTransform != nil { _ = inf.SetTransform(opts.ObjectTransform) } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 8.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
// error.Error() string recv := NewVar(nopos, nil, "", typ) res := NewVar(nopos, nil, "", Typ[String]) sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false) err := NewFunc(nopos, nil, "Error", sig) // interface{ Error() string } ityp := &Interface{methods: []*Func{err}, complete: true} computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
// error.Error() string recv := NewVar(nopos, nil, "", typ) res := NewVar(nopos, nil, "", Typ[String]) sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false) err := NewFunc(nopos, nil, "Error", sig) // interface{ Error() string } ityp := &Interface{methods: []*Func{err}, complete: true} computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc
function_builder.create<mlir::func::ReturnOp>(new_func.getLoc(), return_operands); ops_added.func_op = new_func; module.push_back(new_func); return new_func; } void ExtractSubgraphToFunc(const Subgraph& subgraph, OpBuilder& builder, ModuleOp& module, OpsAdded& ops_added) { func::FuncOp func = BuildFuncOp(subgraph, builder, module, ops_added);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc
auto name = rewriter.getStringAttr("gelu_decomp"); func::FuncOp new_func = rewriter.create<func::FuncOp>( insertion_point->front().getLoc(), name, ftype); new_func.setPrivate(); new_func.addEntryBlock(); rewriter.setInsertionPointToStart(&new_func.getBody().front()); auto one_val = DenseElementsAttr::get(type, kOne); auto one_cst =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 9.6K bytes - Viewed (0) -
pkg/registry/certificates/certificates/strategy_test.go
} }) } } func TestStatusUpdate(t *testing.T) { now := metav1.Now() later := metav1.NewTime(now.Add(time.Hour)) nowFunc = func() metav1.Time { return now } defer func() { nowFunc = metav1.Now }() tests := []struct { name string newObj *certapi.CertificateSigningRequest oldObj *certapi.CertificateSigningRequest
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 7.6K bytes - Viewed (0) -
pkg/registry/core/persistentvolume/storage/storage_test.go
hostPathType := new(api.HostPathType) *hostPathType = api.HostPathType(pathType) return hostPathType } func validNewPersistentVolume(name string) *api.PersistentVolume { now := persistentvolume.NowFunc() pv := &api.PersistentVolume{ ObjectMeta: metav1.ObjectMeta{ Name: name, }, Spec: api.PersistentVolumeSpec{ Capacity: api.ResourceList{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 7.4K bytes - Viewed (0)