hledger/hledger/test/balance
Stephen Morgan 74f0f37fb3 imp: queries: Allow regular expression depth queries
Previously depth-limiting was universal across all accounts, e.g. all
accounts are clipped to depth 2. However, sometimes you want certain
accounts clipped to a different depth than others, e.g. all expenses to
depth 3, while all assets to depth 2. This commit enables depth-limiting
to optionally include a regular expression, which limits the accounts it
applies to.

More than one depth limit can be passed, and they are applied to each
account name by the following rules:
- If one or more regular-expression depth limit applies, use the
  most specific one
- If no regular-expression depth limits apply, and a flat depth limit is
  supplied, use that
- Otherwise, do not do any depth limiting

For example, this will clip all accounts matching "assets" to depth 3,
all accounts matching "expenses" to depth 2, and all other accounts to
depth 1.
--depth assets=3 --depth expenses=2 --depth 1
2024-12-03 08:33:21 -10:00
..
87.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
219.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
373-layout.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
2196.test fix: balcmds: show digit groups marks in html output again [#2196] 2024-04-25 08:09:10 -10:00
balance-multicol.journal cli, lib: move functional tests into hledger/test/ 2020-11-16 08:47:41 -08:00
balance.test test: balance: adapt to newly implemented tree mode 2024-10-08 23:07:07 -10:00
bcexample.hledger cli, lib: move functional tests into hledger/test/ 2020-11-16 08:47:41 -08:00
bcexample.test bal: fix bcexample test 2021-11-22 10:14:37 -10:00
budget-sorting.test cli, lib: move functional tests into hledger/test/ 2020-11-16 08:47:41 -08:00
budget.test ;dev: update tests for weekly headings change [#2204] 2024-06-25 09:06:29 +01:00
date2.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
depth.test imp: queries: Allow regular expression depth queries 2024-12-03 08:33:21 -10:00
drop.test test: balance: adapt to newly implemented tree mode 2024-10-08 23:07:07 -10:00
flat.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
format.test cli, lib: move functional tests into hledger/test/ 2020-11-16 08:47:41 -08:00
intervals.test ;dev: clean up dates, intervals func tests 2024-07-16 22:12:51 +01:00
layout.test imp: bs,cf,is: show interval in report title 2024-07-17 08:26:43 +01:00
multicommodity.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
no-total-no-elide.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
percent.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
precision.test dev: tests: convert remaining format 1 tests to format 3 (or 2) 2023-02-16 11:55:15 -10:00
pretty.test imp: balcmds: with --pretty, show table and inter-column borders 2024-06-12 05:02:08 +01:00
sample.journal cli, lib: move functional tests into hledger/test/ 2020-11-16 08:47:41 -08:00
sorting.test ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
transpose.test imp: balcmds: csv, html output: change "total" row header to "Total:" 2024-06-12 05:02:08 +01:00