Expand description
The lossless fixture of the client form tests: one transaction holding everything an edit could lose, and a snapshot of what is stored for it.
Structs§
Constants§
- EDITED_
NOTE - The note a note-only edit writes.
- NOTE
- POST_
DATE - An exact instant with microseconds.
- PRICE_
DATE - The FX price date: distinct from the post date, with microseconds.
Functions§
- first_
row_ tag - The name of the first split tag the loaded payload gives row
r1. - kept_
only - Whether the snapshot holds three rows and, as split tags, exactly the
non-empty
keptfacts: what an edit that drops rowr2and adds two untagged rows stores. - seed
- A user with the lossless transaction: transaction tags with and without (multiline, CR and CRLF, or empty) descriptions, split tags, an FX price dated apart from the exact post date, a fraction and a multiline note.
- seed_
transaction - The lossless transaction in the store of the existing
user. - seed_
transaction_ without_ cr seed_transactionwithout the carriage-return tag, for the web edit page, which refuses carriage returns by design.- snapshot
- Everything stored for the transaction, one sorted line per fact, without the split and price ids an edit regenerates.
- split_
tag_ facts - The split-tag facts of the snapshot whose tag is named
name. - tag_
facts - The sorted transaction-tag facts of the snapshot, the note fact excluded.
- without_
note - The snapshot without its note line.