tercul-backend/internal
google-labs-jules[bot] 057d6ea6bb test: Increase test coverage for sql repositories
This commit improves the test coverage for the `internal/data/sql`
package by adding comprehensive tests for several repositories and
refactoring the testing strategy to be more robust.

The following changes were made:
- Refactored the `analytics_repository_test.go` to use an in-memory
  SQLite database instead of `sqlmock`. This makes the tests more
  reliable and less brittle against GORM's SQL generation.
- Added new tests for `auth_repository.go` and
  `copyright_claim_repository.go` using the same in-memory SQLite
  database strategy.
- Added the missing `WorkID` field to the `CopyrightClaim` domain
  entity to align it with the repository's logic.

This effort increased the test coverage for the `internal/data/sql`
package from 30.5% to 37.1%.
2025-10-08 21:58:20 +00:00
..
adapters test: Increase test coverage for work package to over 80% 2025-10-08 20:45:49 +00:00
app test: Increase test coverage for work package to over 80% 2025-10-08 20:45:49 +00:00
data test: Increase test coverage for sql repositories 2025-10-08 21:58:20 +00:00
domain test: Increase test coverage for sql repositories 2025-10-08 21:58:20 +00:00
enrichment feat: Complete large-scale refactor and prepare for production 2025-10-07 11:09:37 +00:00
jobs Chore: Clean up lint warnings and improve code quality 2025-10-07 13:14:01 +00:00
observability feat: Complete all pending tasks from TASKS.md 2025-10-05 05:26:27 +00:00
platform test: Increase test coverage for internal/platform/cache 2025-10-08 21:28:56 +00:00
testutil This commit introduces a series of significant improvements to bring the codebase closer to a production-ready state. 2025-10-08 17:25:02 +00:00