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

Function IsSelfSendForTest

internal/agent/export_test.go:17–19  ·  view source on GitHub ↗

IsSelfSendForTest is the agent_test-package handle for isSelfSend. Pure function over (request, agent email); see selfsend.go for the behavioral contract. Renaming the public name is intentional — the "ForTest" suffix marks this as a test-only escape hatch so a future reader doesn't reach for it fro

(req outbound.SendRequest, agentEmail string)

Source from the content-addressed store, hash-verified

15// "ForTest" suffix marks this as a test-only escape hatch so a future
16// reader doesn't reach for it from production code.
17func IsSelfSendForTest(req outbound.SendRequest, agentEmail string) bool {
18 return isSelfSend(req, agentEmail)
19}
20
21// AuthenticateUserForTest exposes API.authenticateUser so external
22// test helpers can construct synthetic guard-protected handlers

Callers 1

Calls 1

isSelfSendFunction · 0.85

Tested by

no test coverage detected