MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / errCode

Function errCode

internal/httpapi/agents_write_test.go:96–103  ·  view source on GitHub ↗
(body map[string]any)

Source from the content-addressed store, hash-verified

94}
95
96func 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
105func TestCreateAgentHappyPath(t *testing.T) {
106 srv := testServer(t)

Calls

no outgoing calls

Tested by

no test coverage detected