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

Function TestMagicLinkGETInvalidToken

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

Source from the content-addressed store, hash-verified

373}
374
375func TestMagicLinkGETInvalidToken(t *testing.T) {
376 server, _, _, smtpDone := setupMagicLinkAPI(t)
377 defer smtpDone()
378
379 resp, _ := http.Get(server.URL + "/v1/approve?t=gibberish")
380 defer resp.Body.Close()
381 if resp.StatusCode != http.StatusBadRequest {
382 t.Errorf("status = %d, want 400", resp.StatusCode)
383 }
384}
385
386func TestMagicLinkPOSTInvalidToken(t *testing.T) {
387 server, _, _, smtpDone := setupMagicLinkAPI(t)

Callers

nothing calls this directly

Calls 3

setupMagicLinkAPIFunction · 0.85
GetMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected