Expand description
Custom assertion macros for testing accounting invariants.
Structs§
- Balance
Snapshot - Balance snapshot for coherence testing.
- Document
Chain Result - Document chain validation result.
- Fidelity
Result - Fidelity comparison result.
- Subledger
Reconciliation - Subledger reconciliation data.
Functions§
- benford_
mad - Convenience function to compute Mean Absolute Deviation for Benford analysis.
- calculate_
imbalance - Calculate the imbalance of a journal entry.
- check_
accounting_ equation - Check that the accounting equation holds: Assets = Liabilities + Equity
- check_
benford_ distribution - Check if amounts follow Benford’s Law distribution. Returns the chi-squared statistic and whether it passes the test at p < 0.05.
- check_
document_ chain_ completeness - Check document chain completeness rate.
- check_
fidelity - Check fidelity between synthetic data and fingerprint.
- check_
trial_ balance - Verify trial balance is balanced (total debits = total credits).
- is_
balanced - Check if a journal entry is balanced.