ledger/test
John Wiegley 5da1e7756d Added new option --inject=KEY[,KEY...]
If you have a typed metadata key which contains an amount, you can use
--inject=KEY to inject a posting with that amount wherever a match
occurs.  There are two main forms of usage:

  2010-06-18 Sample
      ; Key:: $100
      Expenses:Food                $100.00
      Assets:Checking

The command would be:

  ledger reg --inject=Key

In the above, transactional form, a posting under the account "Key" will
be injected before the first posting reported for this transaction.
It's amount will be $100.  This only happens once for the whole
transaction.

It is also possible to associate the key with a posting:

  2010-06-18 Sample
      Expenses:Food                $100.00
      ; Key:: $100
      Assets:Checking

Now the injected posting is generated whenever that particular post is
reported.
2010-06-18 02:28:12 -04:00
..
baseline Added new option --inject=KEY[,KEY...] 2010-06-18 02:28:12 -04:00
input Added a 'speedtest' Makefile target 2010-06-07 05:08:24 -04:00
manual Fixed tests relative to recent --pivot change 2010-02-04 04:23:27 -05:00
regress Improved algorithm for abbreviating account names 2010-06-14 07:20:23 -04:00
unit Untabified all source files 2010-06-11 17:02:25 -04:00
CheckComments.py Created a script to check commenting coverage 2010-06-15 21:32:05 -04:00
CheckTests.py Ensure that all options are tested and documented 2010-06-15 18:19:54 -04:00
ConfirmTests.py Added --rounding option, which is off by default 2010-05-23 15:45:51 -06:00
convert.py Many improvements to Ledger's Python bindings 2009-11-19 22:24:24 -05:00
DataTests.cc The -B, -G, -V reports now show rounding amounts 2009-02-26 03:16:39 -04:00
ExprTests.cc The -B, -G, -V reports now show rounding amounts 2009-02-26 03:16:39 -04:00
fullcheck.sh Added LedgerHarness.py, to simplify test creation 2009-02-28 05:37:49 -04:00
GenerateTests.py Tests run in parallel with using acprep -jX make 2010-06-15 01:49:18 -04:00
LedgerHarness.py Tests run in parallel with using acprep -jX make 2010-06-15 01:49:18 -04:00
MathTests.cc The -B, -G, -V reports now show rounding amounts 2009-02-26 03:16:39 -04:00
prove.sh Reorganized some files in tools/ and test/ 2009-02-28 06:18:21 -04:00
PyUnitTests.py Build Python module using automake, not setup.py 2009-02-24 12:48:11 -04:00
RegressTests.py Tests run in parallel with using acprep -jX make 2010-06-15 01:49:18 -04:00
ReportTests.cc The -B, -G, -V reports now show rounding amounts 2009-02-26 03:16:39 -04:00
runtests.py The -B, -G, -V reports now show rounding amounts 2009-02-26 03:16:39 -04:00
UnitTests.cc Untabified all source files 2010-06-11 17:02:25 -04:00
UnitTests.h Untabified all source files 2010-06-11 17:02:25 -04:00
UtilTests.cc The -B, -G, -V reports now show rounding amounts 2009-02-26 03:16:39 -04:00