- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for registerErr (0.14 sec)
-
src/net/http/server_test.go
{"/a", h, `conflicts with pattern.* \(registered at .*/server_test.go:\d+`}, } { t.Run(fmt.Sprintf("%s:%#v", test.pattern, test.handler), func(t *testing.T) { err := mux.registerErr(test.pattern, test.handler) if err == nil { t.Fatal("got nil error") } re := regexp.MustCompile(test.wantRegexp) if g := err.Error(); !re.MatchString(g) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 13:54:22 UTC 2024 - 7.3K bytes - Viewed (0) -
src/net/http/pattern_test.go
} } } func TestRegisterConflict(t *testing.T) { mux := NewServeMux() pat1 := "/a/{x}/" if err := mux.registerErr(pat1, NotFoundHandler()); err != nil { t.Fatal(err) } pat2 := "/a/{y}/{z...}" err := mux.registerErr(pat2, NotFoundHandler()) var got string if err == nil { got = "<nil>" } else { got = err.Error() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 16:36:30 UTC 2024 - 15K bytes - Viewed (0) -
src/net/http/server.go
DefaultServeMux.register(pattern, HandlerFunc(handler)) } } func (mux *ServeMux) register(pattern string, handler Handler) { if err := mux.registerErr(pattern, handler); err != nil { panic(err) } } func (mux *ServeMux) registerErr(patstr string, handler Handler) error { if patstr == "" { return errors.New("http: invalid pattern") } if handler == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 123.4K bytes - Viewed (0) -
pkg/env/var.go
RegisterVar(v) return GenericVar[T]{getVar(name), nil} } // RegisterStringVar registers a new string environment variable. func RegisterStringVar(name string, defaultValue string, description string) StringVar { v := Var{Name: name, DefaultValue: defaultValue, Description: description, Type: STRING} RegisterVar(v) return StringVar{getVar(name)} }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 11.8K bytes - Viewed (0) -
pkg/monitoring/monitoring.go
otel.SetLogger(log.NewLogrAdapter(monitoringLogger)) } // RegisterPrometheusExporter sets the global metrics handler to the provided Prometheus registerer and gatherer. // Returned is an HTTP handler that can be used to read metrics from. func RegisterPrometheusExporter(reg prometheus.Registerer, gatherer prometheus.Gatherer) (http.Handler, error) { if reg == nil { reg = prometheus.DefaultRegisterer } if gatherer == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 9.5K bytes - Viewed (0) -
tensorflow/c/eager/gradients.h
absl::Span<AbstractTensorHandle*> grad_inputs) = 0; virtual ~GradientFunction() {} }; // Metadata from the forward operation that is made available to the // gradient registerer to instantiate a GradientFunction. struct ForwardOperation { public: string op_name; std::vector<AbstractTensorHandle*> inputs; std::vector<AbstractTensorHandle*> outputs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 26 10:27:05 UTC 2022 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector.go
) var directDialer utilnet.DialFunc = http.DefaultTransport.(*http.Transport).DialContext func init() { client.Metrics.RegisterMetrics(legacyregistry.Registerer()) } // EgressSelector is the map of network context type to context dialer, for network egress. type EgressSelector struct { egressToDialer map[EgressType]utilnet.DialFunc }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 12.5K bytes - Viewed (0)