senke
af134bb6a5
[T0-006] test(backend): Ajout tests pour avatar_handler et notification_handlers
...
- Tests complets pour avatar_handler.go (15 tests)
- Tests complets pour notification_handlers.go (14 tests)
- Interfaces créées pour permettre le mock (ImageServiceInterface, UserServiceInterfaceForAvatar, NotificationServiceInterface)
- Couverture actuelle: 30.3% (objectif: 80%)
Files: veza-backend-api/internal/handlers/avatar_handler.go
veza-backend-api/internal/handlers/avatar_handler_test.go
veza-backend-api/internal/handlers/notification_handlers.go
veza-backend-api/internal/handlers/notification_handlers_test.go
VEZA_ROADMAP.json
Hours: 16 estimated, 18 actual
2026-01-04 01:44:22 +01:00
senke
9f099a8aaf
[T0-006] test(backend): Ajout tests pour search_handlers et comment_handler
...
- Tests complets pour search_handlers.go (6 tests)
- Tests complets pour comment_handler.go (12 tests)
- Interfaces créées pour permettre le mock (SearchServiceInterface, CommentServiceInterface)
- Couverture actuelle: 30.6% (objectif: 80%)
Files: veza-backend-api/internal/handlers/search_handlers.go
veza-backend-api/internal/handlers/search_handlers_test.go
veza-backend-api/internal/handlers/comment_handler.go
veza-backend-api/internal/handlers/comment_handler_test.go
VEZA_ROADMAP.json
Hours: 16 estimated, 17 actual
2026-01-04 01:44:21 +01:00
senke
049fdac9e8
[T0-006] test(backend): Mise à jour couverture tests - 31.1%
...
- Couverture actuelle: 31.1% (amélioration de 0.9%)
- 143 tests créés au total, tous passent
- Tests créés pour 7 services et 2 handlers
- Progression vers objectif 80%
Files:
- VEZA_ROADMAP.json (mis à jour)
Hours: 16 estimated, 13 actual (travail en cours)
2026-01-04 01:44:21 +01:00
senke
ccdc5f7281
[T0-006] test(backend): Ajout tests service notification - Progression couverture
...
- Tests complets pour notification_service (15 tests, tous passent)
- Tests couvrent CreateNotification, GetNotifications, MarkAsRead, MarkAllAsRead, GetUnreadCount
- Tests utilisent SQLite en mémoire
- Couverture actuelle: 30.7% (objectif: 80%)
Files:
- veza-backend-api/internal/services/notification_service_test.go (créé)
- VEZA_ROADMAP.json (mis à jour)
Hours: 16 estimated, 9 actual (travail en cours)
2026-01-04 01:44:21 +01:00
senke
6ebde89f9e
[T0-006] test(backend): Ajout tests services social et cache - Progression couverture
...
- Tests complets pour social_service (18 tests, tous passent)
- Tests complets pour cache_service (20 tests, tous passent)
- Tests utilisent SQLite en mémoire pour social_service
- Tests utilisent Redis local pour cache_service (skip si non disponible)
- Couverture actuelle: 30.7% (objectif: 80%)
Files:
- veza-backend-api/internal/services/social_service_test.go (créé)
- veza-backend-api/internal/services/cache_service_test.go (créé)
- VEZA_ROADMAP.json (mis à jour)
Hours: 16 estimated, 8 actual (travail en cours)
2026-01-04 01:44:21 +01:00
senke
6a4d70dc6e
[T0-006] test(backend): Ajout tests handlers user - Progression couverture
...
- Tests complets pour handlers user (16 tests, tous passent)
- Interface UserServiceInterface créée pour permettre mock dans tests
- Interface DataExportServiceInterface créée pour tests
- Couverture actuelle: 30.7% (objectif: 80%, +0.9%)
Files:
- veza-backend-api/internal/api/user/handler.go (modifié)
- veza-backend-api/internal/api/user/handler_test.go (créé)
- VEZA_ROADMAP.json (mis à jour)
Hours: 16 estimated, 6 actual (travail en cours)
2026-01-04 01:44:21 +01:00
senke
9e16672953
[T0-006] test(backend): Amélioration couverture tests Go - Scripts et tests RBAC
...
- Scripts créés pour exécuter tests par groupes/packages (évite crashes RAM)
- Tests complets pour handlers RBAC (16 tests, tous passent)
- Interface RBACServiceInterface créée pour permettre mock dans tests
- Couverture actuelle: 29.8% (objectif: 80%)
Files:
- veza-backend-api/scripts/test_coverage_by_groups.sh (créé)
- veza-backend-api/scripts/test_coverage_one_by_one.sh (créé)
- veza-backend-api/internal/api/handlers/rbac_handlers.go (modifié)
- veza-backend-api/internal/api/handlers/rbac_handlers_test.go (créé)
- VEZA_ROADMAP.json (mis à jour)
Hours: 16 estimated, 4 actual (travail en cours)
2026-01-04 01:44:21 +01:00