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

Function TestHandleUpdateMe_MaxBoundary

internal/auth/auth_test.go:340–351  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

338}
339
340func TestHandleUpdateMe_MaxBoundary(t *testing.T) {
341 // 80 chars must succeed; 81 already covered by ValidationErrors.
342 ua, _, token := setupUserAuth(t)
343
344 body := `{"name":"` + strings.Repeat("a", 80) + `"}`
345 req := authedJSON("PATCH", "/api/auth/me", token, body)
346 w := httptest.NewRecorder()
347 ua.HandleUpdateMe(w, req)
348 if w.Code != http.StatusOK {
349 t.Errorf("80-char name should succeed; got status=%d body=%s", w.Code, w.Body.String())
350 }
351}
352
353// --- Dashboard stats endpoint ---
354

Callers

nothing calls this directly

Calls 4

setupUserAuthFunction · 0.85
HandleUpdateMeMethod · 0.80
authedJSONFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected