feedsignal/crates/db
Austin Schaefer 8edffe8973 Add unit tests for list_ranked_articles' feed_id filtering
The sidebar's per-feed nav depends on this query correctly scoping to
one feed (or joining all of them when feed_id is None), and it's real
branching logic rather than a passthrough — exactly what the updated
Definition of Done's testing rule calls for.

Uses a throwaway SQLite file per test (migrated fresh, cleaned up via
Drop) rather than a shared fixture, since diesel-async's bb8 pool would
otherwise hand out per-connection ":memory:" databases that don't share
state.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PqTJmazHBQK878vjQ4JnnF
2026-09-03 17:04:01 +02:00
..
migrations/2026-08-21-000000_init Replace sqlx with Diesel + diesel-async for compile-time-checked queries 2026-08-21 11:04:38 +02:00
src Add unit tests for list_ranked_articles' feed_id filtering 2026-09-03 17:04:01 +02:00
Cargo.toml Replace sqlx with Diesel + diesel-async for compile-time-checked queries 2026-08-21 11:04:38 +02:00