Skip to main content

Module lossless

Module lossless 

Source
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§

Lossless

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 kept facts: what an edit that drops row r2 and 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_transaction without 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.