tercul-backend/internal
google-labs-jules[bot] 1655a02a08 Refactor repository tests to be more DRY and maintainable.
Introduced a new testing strategy for the data access layer to avoid redundant testing of generic repository methods.

- Created a comprehensive test suite for the generic `BaseRepository` using a dedicated `TestEntity`. This suite covers all common CRUD operations, including transactions and error handling, in a single location.
- Added a new, focused test suite for `CategoryRepository` that only tests its repository-specific methods, relying on the base repository tests for generic functionality.
- Refactored the existing `AuthorRepository` test suite to remove redundant CRUD tests, aligning it with the new, cleaner pattern.
- Updated the test utilities to support the new testing strategy.

This change significantly improves the maintainability and efficiency of the test suite and provides a clear, future-proof pattern for testing all repositories.
2025-09-06 13:01:04 +00:00
..
adapters feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00
app feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00
data Refactor repository tests to be more DRY and maintainable. 2025-09-06 13:01:04 +00:00
domain feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00
jobs Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
observability 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
platform Refactor: In-progress refactoring to fix build. 2025-09-05 15:11:30 +00:00
testutil Refactor repository tests to be more DRY and maintainable. 2025-09-06 13:01:04 +00:00