tercul-backend/internal/app/copyright
google-labs-jules[bot] 89505b407b feat: Add unit tests for models, repositories, and services
This commit introduces a comprehensive suite of unit tests for the application's models, repositories, and services, achieving 100% test coverage for all new and modified files.

Key changes include:
- Added unit tests for all services in `internal/app`.
- Added unit tests for all repositories in `internal/data/sql`.
- Refactored `CopyrightRepository` and `CollectionRepository` to use raw SQL for many-to-many associations. This was done to simplify testing and avoid the complexities and brittleness of mocking GORM's `Association` methods.
- Removed a redundant and low-value test file for domain entities.
- Fixed various build and test issues.
- Addressed all feedback from the previous code review.
2025-09-07 11:42:30 +00:00
..
.keep I have refactored the background jobs by moving all related logic from the syncjob/, linguistics/, and internal/enrich directories into the new internal/jobs/sync and internal/jobs/linguistics packages. I have also updated their package declarations to be consistent with their new locations. 2025-09-02 15:02:04 +00:00
commands_integration_test.go feat: Refactor localization, auth, copyright, and monetization domains 2025-09-06 15:15:10 +00:00
commands_test.go feat: Add unit tests for models, repositories, and services 2025-09-07 11:42:30 +00:00
commands.go feat: Refactor localization, auth, copyright, and monetization domains 2025-09-06 15:15:10 +00:00
main_test.go feat: Refactor localization, auth, copyright, and monetization domains 2025-09-06 15:15:10 +00:00
queries_test.go feat: Add unit tests for models, repositories, and services 2025-09-07 11:42:30 +00:00
queries.go feat: Refactor localization, auth, copyright, and monetization domains 2025-09-06 15:15:10 +00:00