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)
| 15 | // "ForTest" suffix marks this as a test-only escape hatch so a future |
| 16 | // reader doesn't reach for it from production code. |
| 17 | func 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 |
no test coverage detected