(body map[string]any)
| 94 | } |
| 95 | |
| 96 | func errCode(body map[string]any) string { |
| 97 | if e, ok := body["error"].(map[string]any); ok { |
| 98 | if c, ok := e["code"].(string); ok { |
| 99 | return c |
| 100 | } |
| 101 | } |
| 102 | return "" |
| 103 | } |
| 104 | |
| 105 | func TestCreateAgentHappyPath(t *testing.T) { |
| 106 | srv := testServer(t) |
no outgoing calls
no test coverage detected