github.com/qlik-oss/gopherciser@v0.18.6/metrics/transport_test.go (about) 1 package metrics 2 3 /* 4 // Tests that the RegisterRoutes successfully registers the provided Endpoint function at the /metrics path. 5 func TestRegisterRoute(t *testing.T) { 6 router := mux.NewRouter() 7 RegisterRoutes(router) 8 route := router.GetRoute("metrics") 9 assert.Equal(t, "metrics", route.GetName()) 10 } 11 */