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

Function TestMagicLinkPOSTMissingToken

internal/agent/hitl_magic_api_test.go:364–373  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

362}
363
364func TestMagicLinkPOSTMissingToken(t *testing.T) {
365 server, _, _, smtpDone := setupMagicLinkAPI(t)
366 defer smtpDone()
367
368 resp := postForm(t, server.URL+"/v1/approve", map[string]string{})
369 defer resp.Body.Close()
370 if resp.StatusCode != http.StatusBadRequest {
371 t.Errorf("status = %d, want 400", resp.StatusCode)
372 }
373}
374
375func TestMagicLinkGETInvalidToken(t *testing.T) {
376 server, _, _, smtpDone := setupMagicLinkAPI(t)

Callers

nothing calls this directly

Calls 3

setupMagicLinkAPIFunction · 0.85
postFormFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected