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

Function TestAttachment_IndexOutOfRange

internal/httpapi/attachment_endpoint_test.go:149–155  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

147}
148
149func TestAttachment_IndexOutOfRange(t *testing.T) {
150 srv := attTestServer(t)
151 code, body := getJSONAtt(t, srv.URL+"/v1/agents/support%40acme.com/messages/msg_att/attachments/9", "acct")
152 if code != 404 || errCode(body) != "attachment_not_found" {
153 t.Fatalf("want 404 attachment_not_found, got %d %v", code, body)
154 }
155}
156
157func TestAttachment_AgentScopeCannotReadOtherAgentsMessage(t *testing.T) {
158 srv := attTestServer(t)

Callers

nothing calls this directly

Calls 3

attTestServerFunction · 0.85
getJSONAttFunction · 0.85
errCodeFunction · 0.85

Tested by

no test coverage detected