(err error)
| 290 | } |
| 291 | |
| 292 | func fakeAgentAPITaskLogsErr(err error) map[string]http.HandlerFunc { |
| 293 | return map[string]http.HandlerFunc{ |
| 294 | "/messages": func(w http.ResponseWriter, r *http.Request) { |
| 295 | w.WriteHeader(http.StatusInternalServerError) |
| 296 | w.Header().Set("Content-Type", "application/json") |
| 297 | _ = json.NewEncoder(w).Encode(map[string]interface{}{ |
| 298 | "error": err.Error(), |
| 299 | }) |
| 300 | }, |
| 301 | } |
| 302 | } |
no test coverage detected