MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / TestMetricsHandler

Method TestMetricsHandler

rest/utilities_testing.go:827–833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

825}
826
827func (rt *RestTester) TestMetricsHandler() http.Handler {
828 rt.metricsHandlerOnce.Do(func() {
829 rt.MetricsHandler = CreateMetricHandler(rt.ServerContext())
830 rt.ServerContext().addHTTPServer(metricsServer, &serverInfo{nil, &net.TCPAddr{IP: fakeRestTesterIP, Port: 4986}})
831 })
832 return rt.MetricsHandler
833}
834
835// TestDiagnosticHandler is called to lazily create a handler against the diagnostic interface.
836func (rt *RestTester) TestDiagnosticHandler() http.Handler {

Callers 5

TestPublicRESTStatCountFunction · 0.95
TestMetricsHandlerFunction · 0.95
sendMetricsMethod · 0.95

Calls 3

ServerContextMethod · 0.95
CreateMetricHandlerFunction · 0.85
addHTTPServerMethod · 0.80

Tested by 4

TestPublicRESTStatCountFunction · 0.76
TestMetricsHandlerFunction · 0.76