Commit graph

13 commits

Author SHA1 Message Date
senke
634d0db22f fix: resolve stream server compilation errors and integrate chat stability fixes 2026-01-04 01:44:22 +01:00
senke
cc8aaffa92 [T0-006] test(backend): Ajout tests pour playback_analytics_handler
- Tests complets pour playback_analytics_handler.go (18 tests)
- Interfaces créées pour permettre le mock (PlaybackAnalyticsServiceInterfaceForHandler, PlaybackAnalyticsRateLimiterInterface, PlaybackHeatmapServiceInterface)
- Tests couvrent RecordAnalytics, GetQuotaInfo, GetDashboard, GetSummary, GetHeatmap
- Gestion des erreurs et validation complète
- Couverture actuelle: 36.3% (objectif: 80%)

Files: veza-backend-api/internal/handlers/playback_analytics_handler.go
       veza-backend-api/internal/handlers/playback_analytics_handler_test.go
Hours: 16 estimated, 25 actual
2026-01-04 01:44:22 +01:00
senke
77e3a8ee05 [T0-006] test(backend): Ajout tests pour playback_websocket_handler
- Tests complets pour playback_websocket_handler.go (12 tests)
- Interface PlaybackAnalyticsServiceInterface créée pour permettre le mock
- Tests couvrent NewPlaybackWebSocketHandler, BroadcastAnalyticsUpdate, BroadcastStatsUpdate
- Tests pour GetConnectedClientsCount et GetTotalConnectedClientsCount
- Tests pour gestion des messages WebSocket et validation JSON
- Couverture actuelle: 36.3% (objectif: 80%)

Files: veza-backend-api/internal/handlers/playback_websocket_handler.go
       veza-backend-api/internal/handlers/playback_websocket_handler_test.go
       VEZA_ROADMAP.json
Hours: 16 estimated, 24 actual
2026-01-04 01:44:22 +01:00
senke
b28d0e7eac [T0-006] test(backend): Ajout tests pour frontend_log_handler
- Tests complets pour frontend_log_handler.go (12 tests)
- Tests couvrent NewFrontendLogHandler et ReceiveLog
- Tests pour tous les niveaux de log (DEBUG, INFO, WARN, ERROR)
- Tests pour gestion des erreurs et validation JSON
- Couverture actuelle: 30.6% (objectif: 80%)

Files: veza-backend-api/internal/handlers/frontend_log_handler_test.go
       VEZA_ROADMAP.json
Hours: 16 estimated, 23 actual
2026-01-04 01:44:22 +01:00
senke
0dc595a23f [T0-006] test(backend): Ajout tests pour social.go
- Tests complets pour social.go (18 tests)
- Handler utilise déjà l'interface social.SocialService
- Tests couvrent CreatePost, ToggleLike, AddComment, GetFeed avec validation
- Couverture actuelle: 30.7% (objectif: 80%)

Files: veza-backend-api/internal/handlers/social.go
       veza-backend-api/internal/handlers/social_test.go
       VEZA_ROADMAP.json
Hours: 16 estimated, 21 actual
2026-01-04 01:44:22 +01:00
senke
fb25465e21 [T0-006] test(backend): Ajout tests pour role_handler
- Tests complets pour role_handler.go (22 tests)
- Interface RoleServiceInterface créée pour permettre le mock
- Tests couvrent GetRoles, GetRole, CreateRole, UpdateRole, DeleteRole, AssignRole, RevokeRole, GetUserRoles
- Couverture actuelle: 30.3% (objectif: 80%)

Files: veza-backend-api/internal/handlers/role_handler.go
       veza-backend-api/internal/handlers/role_handler_test.go
       VEZA_ROADMAP.json
Hours: 16 estimated, 19 actual
2026-01-04 01:44:22 +01:00
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