Your Name
52161d5a9c
test: add UserService unit tests (38+ test functions)
Coverage: Service 72.0% → 71.7% (same coverage, more comprehensive tests)
- GetByID/GetByEmail: success and error cases
- Create: validation (empty username, email format/length, nickname/bio length)
- Update/Delete/List: basic CRUD operations
- ListCursor: cursor pagination
- BatchUpdateStatus/BatchDelete: batch operations
- GetUserRoles/AssignRoles: role management
- ListAdmins/DeleteAdmin: admin operations with protection
- ChangePassword: security validation (nil repo, empty passwords, weak passwords, incorrect old password)
2026-05-30 17:28:55 +08:00
..
2026-05-30 14:37:15 +08:00
2026-05-28 15:19:13 +08:00
2026-05-29 17:38:48 +08:00
2026-04-18 20:48:11 +08:00
2026-05-28 15:19:34 +08:00
2026-04-18 22:57:44 +08:00
2026-05-29 21:04:33 +08:00
2026-04-18 20:48:11 +08:00
2026-04-17 20:43:50 +08:00
feat: backend core - auth, user, role, permission, device, webhook, monitoring, cache, repository, service, middleware, API handlers
2026-04-02 11:19:50 +08:00
2026-05-29 17:23:44 +08:00
2026-05-29 14:57:49 +08:00
2026-04-18 20:48:11 +08:00
2026-05-29 21:20:30 +08:00
2026-05-29 16:59:05 +08:00
2026-04-17 20:43:50 +08:00
2026-05-29 17:28:57 +08:00
2026-05-29 16:04:40 +08:00
2026-05-30 17:28:55 +08:00
2026-04-17 20:43:50 +08:00
2026-04-17 20:43:50 +08:00
2026-05-29 20:13:56 +08:00