- Sort Score
- Result 10 results
- Languages All
Results 41 - 49 of 49 for newCounter (1.56 sec)
-
pkg/ctrlz/ctrlz.go
_ = augmentLayout(baseLayout, "templates/modules/last-refresh.html") mainLayout := augmentLayout(template.Must(baseLayout.Clone()), "templates/layouts/main.html") router := mux.NewRouter() for _, t := range allTopics { registerTopic(router, mainLayout, t) } if o.EnablePprof && o.Address == "localhost" { router.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 11 21:22:53 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate_test.go
{"func (r T[P]) m(T[P], T[string], T[int])", "func (T[int]).m(T[int], T[string], T[int])"}, } for _, test := range tests { src := prefix + test.decl pkg := mustTypecheck(src, nil, nil) typ := NewPointer(pkg.Scope().Lookup("X").Type()) obj, _, _ := LookupFieldOrMethod(typ, false, pkg, "m") m, _ := obj.(*Func) if m == nil { t.Fatalf(`LookupFieldOrMethod(%s, "m") = %v, want func m`, typ, obj) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 5.8K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo.go
return false } func (plugin *gitRepoPlugin) SupportsSELinuxContextMount(spec *volume.Spec) (bool, error) { return false, nil } func (plugin *gitRepoPlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error) { if err := validateVolume(spec.Volume.GitRepo); err != nil { return nil, err } return &gitRepoVolumeMounter{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/volume/nfs/nfs_test.go
spec := volume.NewSpecFromPersistentVolume(pv, true) pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}} mounter, _ := plug.NewMounter(spec, pod, volume.VolumeOptions{}) if mounter == nil { t.Fatalf("Got a nil Mounter") } if !mounter.GetAttributes().ReadOnly { t.Errorf("Expected true for mounter.IsReadOnly") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 9K bytes - Viewed (0) -
src/go/types/instantiate_test.go
{"func (r T[P]) m(T[P], T[string], T[int])", "func (T[int]).m(T[int], T[string], T[int])"}, } for _, test := range tests { src := prefix + test.decl pkg := mustTypecheck(src, nil, nil) typ := NewPointer(pkg.Scope().Lookup("X").Type()) obj, _, _ := LookupFieldOrMethod(typ, false, pkg, "m") m, _ := obj.(*Func) if m == nil { t.Fatalf(`LookupFieldOrMethod(%s, "m") = %v, want func m`, typ, obj) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
src/go/types/methodset_test.go
t.Fatalf("missing or unexpected error: %v", err) } // look up T.m and (*T).m T := pkg.Scope().Lookup("T").Type() name := "m" for _, recv := range []Type{T, NewPointer(T)} { // LookupFieldOrMethod and NewMethodSet must match: // either both find m or neither finds it. obj1, _, _ := LookupFieldOrMethod(recv, false, pkg, name) mset := NewMethodSet(recv)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 08 15:27:57 UTC 2023 - 6.7K bytes - Viewed (0) -
internal/dsync/dsync-server_test.go
lsrv := &lockServer{ mutex: sync.Mutex{}, lockMap: make(map[string]int64), } lockServer := lockServerHandler{ lsrv: lsrv, } lockServers[i] = lsrv router := mux.NewRouter().SkipClean(true) subrouter := router.PathPrefix("/").Subrouter() subrouter.Methods(http.MethodPost).Path("/v1/health").HandlerFunc(lockServer.HealthHandler)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jan 23 16:46:37 UTC 2023 - 8.3K bytes - Viewed (0) -
src/go/types/example_test.go
if err != nil { log.Fatal(err) } // Print the method sets of Celsius and *Celsius. celsius := pkg.Scope().Lookup("Celsius").Type() for _, t := range []types.Type{celsius, types.NewPointer(celsius)} { fmt.Printf("Method set of %s:\n", t) mset := types.NewMethodSet(t) for i := 0; i < mset.Len(); i++ { fmt.Println(mset.At(i)) } fmt.Println() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
pilot/pkg/model/test/mockopenidserver.go
TLSKeyFile: tlsKey, } return server, server.Start() } // Start starts the mock server. func (ms *MockOpenIDDiscoveryServer) Start() error { var handler http.Handler router := mux.NewRouter() router.HandleFunc("/.well-known/openid-configuration", ms.openIDCfg).Methods("GET") router.HandleFunc("/oauth2/v3/certs", ms.jwtPubKey).Methods("GET") handler = router if ms.timeout != 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 09:47:21 UTC 2024 - 9.4K bytes - Viewed (0)