From 302a15a209582ed2b1eda057dddb41b12e349916 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 1 May 2026 17:54:40 -0400 Subject: [PATCH] test(recommendation): fix mislabeled compile-time assert in home tests Replaces var _ = func() pgtype.UUID { ... } with var _ map[pgtype.UUID]struct{} which actually verifies map-key comparability, matching the comment. Co-Authored-By: Claude Opus 4.7 (1M context) --- internal/recommendation/home_integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/recommendation/home_integration_test.go b/internal/recommendation/home_integration_test.go index d2de02d5..219dadfe 100644 --- a/internal/recommendation/home_integration_test.go +++ b/internal/recommendation/home_integration_test.go @@ -39,7 +39,7 @@ func TestHomeData_NewUser_AllSectionsEmpty(t *testing.T) { // Compile-time assert that pgtype.UUID is a valid map key — used by the // service when de-duping rediscover fallback rows. If this changes, the // service needs to switch to keying by string. -var _ = func() pgtype.UUID { return pgtype.UUID{} } +var _ map[pgtype.UUID]struct{} func TestHomeData_RecentlyAdded_OrderedByCreatedAt(t *testing.T) { pool := newPool(t)