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

Kalimaha / pact-test / 156
100%
master: 96%

Build:
Build:
LAST BUILD BRANCH: development
DEFAULT BRANCH: master
Ran 31 May 2017 03:29AM CUT
Jobs 5
Files 15
Run time 31s
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
156

push

travis-ci

Kalimaha
Better syntax for Eithers

Either class overrides `__rshift__` magic method to allow the usage of `>>` to cancatenate several functions. Example:

```python
def test_break_the_chain():
    out = minus_one(1) >> one_divided_by >> minus_one
    assert out.value == "Division by zero."
```

The `concat` function remains to allow the concatenation of functions that require more than one input parameter. Example:

```python
def test_multiple_parameters():
    out = minus_one(9).concat(my_sum, 5)
    assert out.value == 13

def my_sum(a, b):
    return Right(a + b)
```

207 of 208 relevant lines covered (99.52%)

4.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 156.1 31 May 2017 03:29AM CUT 0
99.52
Travis Job 156.1
2 156.2 31 May 2017 03:29AM CUT 0
99.52
Travis Job 156.2
3 156.3 31 May 2017 03:29AM CUT 0
99.52
Travis Job 156.3
4 156.4 31 May 2017 03:29AM CUT 0
99.52
Travis Job 156.4
5 156.5 31 May 2017 03:29AM CUT 0
99.52
Travis Job 156.5
Source Files on build 156
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
No data available in table
Showing 0 to 0 of 0 entries
  • Previous
  • Next
  • Back to Repo
  • Travis Build #156
  • 28d91171 on github
  • Prev Build on consumer-test (#155)
  • Next Build on consumer-test (#157)
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

© 2025 Coveralls, Inc