tercul-backend/internal
google-labs-jules[bot] 0636596341 test: Increase test coverage for internal/platform/cache
This commit introduces a comprehensive test suite for the `RedisCache`
implementation in `internal/platform/cache/redis_cache.go`.

The following changes were made:
- Added `go-redis/redismock/v9` as a dev dependency to mock the Redis
  client.
- Created `internal/platform/cache/redis_cache_test.go` with tests for
  all public methods of `RedisCache`.
- Covered various scenarios, including success cases, cache misses,
  and Redis errors.
- Tested basic operations (Get, Set, Delete, Clear), multi-key
  operations (GetMulti, SetMulti), entity-specific helpers, and the
  `InvalidateEntityType` method.

This effort increased the test coverage for the `internal/platform/cache`
package from 10.3% to 89.7%, contributing to the overall goal of
achieving >80% test coverage for the project.
2025-10-08 21:28:56 +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 work package to over 80% 2025-10-08 20:45:49 +00:00
domain feat: Complete large-scale refactor and prepare for production 2025-10-07 11:09:37 +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