• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

thanos / beancount_ex / 9fa29bbaf2985dfa2a1e33fd9980c33ca5c0769f-PR-53
96%
main: 96%

Build:
Build:
LAST BUILD BRANCH: v0.6.0/Ecto_Storage-Native_Queries-Reunify
DEFAULT BRANCH: main
Ran 01 Jul 2026 10:49PM UTC
Jobs 1
Files 70
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Jul 2026 10:22PM UTC coverage: 96.275% (+4.4%) from 91.86%
9fa29bbaf2985dfa2a1e33fd9980c33ca5c0769f-PR-53

Pull #53

github

thanos
The golden failure came from holdings cost formatting: the native engine rounded all cost values to 2 decimal places, but bean-query only does that for cross-currency cost basis.

For Assets:Stocks with 1.156 AAPL @ 10.45 EUR (price, no cost lot), cost falls back to unit currency (1.156 AAPL). Rounding that to 1.16 AAPL broke parity with the CLI.

Fix in query_engine.ex: use full format_decimal/1 when cost_currency == unit_currency, and keep format_cost_decimal/1 (2dp) when they differ (e.g. 3 AAPL → 100 USD from 99.999).

Added a regression test mirroring the tolerance golden fixture. 557 tests pass (golden tolerance compare included when run with --include beancount).
Pull Request #53: V0.5.0/datalog integration directive compiler

339 of 356 new or added lines in 11 files covered. (95.22%)

1654 of 1718 relevant lines covered (96.27%)

434.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
94.44
-0.47% lib/beancount/compare.ex
5
95.33
lib/beancount/engine/elixir/query_engine.ex
4
96.88
lib/beancount/bql/parser.ex
2
91.67
lib/beancount/engine/elixir/fact_base.ex
1
94.74
lib/beancount/engine/elixir/directive_sort.ex
Jobs
ID Job ID Ran Files Coverage
1 9fa29bbaf2985dfa2a1e33fd9980c33ca5c0769f-PR-53.1 01 Jul 2026 10:49PM UTC 70
96.27
GitHub Action Run
Source Files on build 9fa29bbaf2985dfa2a1e33fd9980c33ca5c0769f-PR-53
  • Tree
  • List 70
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #53
  • PR Base - main (#A15F4A79...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc