(withError bool)
| 121 | } |
| 122 | |
| 123 | func newControllerClientRouter(withError bool) *mux.Router { |
| 124 | router := mux.NewRouter() |
| 125 | router.HandleFunc("/v1/functions/{functionName}/invocations", InvokeHandler(withError)).Methods("POST") |
| 126 | return router |
| 127 | } |
| 128 | |
| 129 | func InvokeHandler(withError bool) func(w http.ResponseWriter, r *http.Request) { |
| 130 | if withError { |
no test coverage detected