Three new Rust integration tests applied at the bottom of `lib.rs`'s `#[cfg(test)] mod tests`. They exercise the realistic upgrade path: a v1 profile DB with imported transactions + categories already there gets the v9 migration applied on top. `migration_v9_preserves_existing_transactions_on_seeded_db` asserts no row loss / data mutation after the migration runs. Spot-checks one amount preserved verbatim and that the v9 seeded categories coexist with the v1 categories table. `integration_link_unlink_transfer_roundtrip_on_seeded_db` walks link → joined-view read → blocked deletion (FK RESTRICT) → unlink → allowed deletion → orphan-row sanity check. Covers the FK chain end-to-end on real (non-stub) transaction ids. `integration_modified_dietz_inputs_read_back_correctly_on_seeded_db` mirrors the exact SQL used by `balance_commands.rs::read_value_at_or_before` and `read_cash_flows`, asserting the snapshot-endpoint lookups and the period-bounded JOINed cash flows return the expected shapes when run against a seeded v1+v9 DB. `integration_v9_preserves_v1_categories_and_keywords` verifies the `categories.id` and `balance_categories.id` namespaces are independent (same numeric id allowed on each table without collision). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| tauri.conf.json | ||