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

Struct fakeInboundLookup

internal/agent/attach_references_test.go:16–24  ·  view source on GitHub ↗

fakeInboundLookup is a stub that satisfies hitlInboundLookup so we can drive attachReferencesChain without a live Postgres. Each test sets up the fields it cares about; everything else is zero-valued.

Source from the content-addressed store, hash-verified

14// drive attachReferencesChain without a live Postgres. Each test sets up
15// the fields it cares about; everything else is zero-valued.
16type fakeInboundLookup struct {
17 calledWith struct {
18 agentID string
19 emailMessageID string
20 }
21 wantAgentID string // when non-empty, t.Errorf if a different agent is queried
22 returnInbound *identity.Message
23 returnErr error
24}
25
26func (f *fakeInboundLookup) GetInboundByEmailMessageID(_ context.Context, agentID, emailMessageID string) (*identity.Message, error) {
27 f.calledWith.agentID = agentID

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected