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

brick / money / 131
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: Historical-currencies
DEFAULT BRANCH: master
Ran 24 Sep 2017 10:42PM UTC
Jobs 4
Files 26
Run time 19s
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

pending completion
131

push

travis-ci

BenMorel
Throw exception when adding or subtracting monies in different contexts

As discussed in the issue tracker, operations involving monies in different contexts may be a sign of a potential defect, even if the result could fit in the context of the left operand. Plus, allowing this behaviour by default would mean that A+B and B+A could return different results (two equal results with different contexts, or one result and one exception).

It is usually better to explicitly juggle contexts if required, or force the operation explicitly using ->getAmount(), as suggested by the exception message.

389 of 461 relevant lines covered (84.38%)

87.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 131.1 24 Sep 2017 10:42PM UTC 0
84.28
Travis Job 131.1
2 131.2 24 Sep 2017 10:42PM UTC 0
85.27
Travis Job 131.2
3 131.3 24 Sep 2017 10:42PM UTC 0
85.27
Travis Job 131.3
4 131.4 24 Sep 2017 10:42PM UTC 0
85.27
Travis Job 131.4
Source Files on build 131
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #131
  • 70e25ba1 on github
  • Prev Build on embedded-context (#130)
  • Next Build on embedded-context (#132)
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