(messages []agentapisdk.Message)
| 279 | } |
| 280 | |
| 281 | func fakeAgentAPITaskLogsOK(messages []agentapisdk.Message) map[string]http.HandlerFunc { |
| 282 | return map[string]http.HandlerFunc{ |
| 283 | "/messages": func(w http.ResponseWriter, r *http.Request) { |
| 284 | w.Header().Set("Content-Type", "application/json") |
| 285 | _ = json.NewEncoder(w).Encode(map[string]interface{}{ |
| 286 | "messages": messages, |
| 287 | }) |
| 288 | }, |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | func fakeAgentAPITaskLogsErr(err error) map[string]http.HandlerFunc { |
| 293 | return map[string]http.HandlerFunc{ |
no test coverage detected