Go to file
google-labs-jules[bot] fd921ee7d2 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. This change centralizes the testing of common functionality, making the test suite cleaner and more efficient.

- 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 the previously untested `CategoryRepository`.
- Refactored the existing test suites for `AuthorRepository`, `BookRepository`, `PublisherRepository`, and `SourceRepository` to remove redundant CRUD tests, leaving only tests for repository-specific logic.
- 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:08:49 +00:00
.github/workflows Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
api 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
cmd Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
deploy 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
internal Refactor repository tests to be more DRY and maintainable. 2025-09-06 13:08:49 +00:00
ops 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
pkg/linguistics 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
test 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
.air.toml Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
.gitignore wip 2025-09-01 00:43:59 +02:00
.tool-versions wip 2025-09-01 00:43:59 +02:00
create_repo_interfaces.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
docker-compose.yml Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
Dockerfile Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
Dockerfile.dev Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
fix_domain_repos.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
fix_sql_imports.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
go.mod feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00
go.sum feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00
gqlgen.yml feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00
refactor.md Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
report.md Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
requirements.txt Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
TODO.md feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00
tools.go Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00