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

cgreen-devs / cgreen / 376 / 1
95%
master: 95%

Build:
DEFAULT BRANCH: master
Ran 01 Dec 2018 11:42AM UTC
Files 76
Run time 3s
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 Dec 2018 11:41AM UTC coverage: 96.113% (+0.07%) from 96.039%
CGREEN_WITH_STATIC_LIBRARY="OFF"

push

travis-ci

thoni56
Add `times` constraint (#174)

In this commit the constraint that expect a mock to be invoked a specific number of times is added.

The implementation piggyback on the `time_to_live` of a recorder expectation to ensure it gets cleaned correctly when it is no longer expected.

To ensure a better error message a variable to store the number of times a specific mock was called was added to the structure `RecordedExpectation`.

The syntax that I selected for this was 
```
expect(function_name, times(3));
```

It looks more clean and also reads better, at least in my opinion.

Fixes issue #70

5589 of 5815 relevant lines covered (96.11%)

111466.25 hits per line

Source Files on job 376.1 (CGREEN_WITH_STATIC_LIBRARY="OFF")
  • Tree
  • List 0
  • Changed 59
  • Source Changed 4
  • Coverage Changed 59
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 369
  • Travis Job 376.1
  • 6e3e228c on github
  • Prev Job for CGREEN_WITH_STATIC_LIBRARY="OFF" on master (#375.1)
  • Next Job for CGREEN_WITH_STATIC_LIBRARY="OFF" on master (#377.1)
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