(t *testing.T)
| 338 | } |
| 339 | |
| 340 | func 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 |
nothing calls this directly
no test coverage detected