portfolio_rs/tests/snapshots/allocation.snap
Markus Zoppelt d999b0e744 refactor(portfolio): render tables to strings and add snapshot tests
print, print_allocation and print_performance now print the output of
render, render_allocation and render_performance_with (provider, last stored
balance, clock), so the tables can be produced without stdout, sled or Yahoo.
CLI output is unchanged. Snapshot tests over fake holdings live in
tests/snapshots/*.snap (UPDATE_SNAPSHOTS=1 to accept); the nix source filter
now includes .snap files.
2026-10-28 01:23:09 +01:00

4 lines
115 B
Text

====================================
Stocks | 44.00
Bonds | 36.00
Cash | 20.00