Skip to content

Scope a test-coverage pass — auth, cache middleware, cache-invalidation goroutine #93

@SyniRon

Description

@SyniRon

The repo has zero _test.go files. The auth interceptors (gRPC + HTTP),
CacheMiddleware, and the cache-invalidation goroutine all run without
tests. There's no safety net for changes to any of those.

This task is the scoping investigation, not the build. Output is a
phased plan — auth-first, then middleware, then datastore via a fake /
sqlmock harness — that can be split into its own tracking issue(s) when
picked up.

Related: ADR 0004 calls out that handler-level fault-injection smokes
short to 401 because auth shares a backend with the data path; a real
test harness is the cleanest path to verifying handler error mapping.

Metadata

Metadata

Assignees

Labels

7cavchoreRoutine maintenance, cleanup, or tech-debt removalneeds-infoWaiting on reporter for more information

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions