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

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

Build:
Build:
LAST BUILD BRANCH: development
DEFAULT BRANCH: master
Ran 31 May 2017 03:26AM UTC
Jobs 3
Files 15
Run time 20s
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
153

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)
```

4 of 4 new or added lines in 1 file covered. (100.0%)

207 of 208 relevant lines covered (99.52%)

2.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 153.1 31 May 2017 03:26AM UTC 0
99.52
Travis Job 153.1
2 153.2 31 May 2017 03:26AM UTC 0
99.52
Travis Job 153.2
3 153.3 31 May 2017 03:26AM UTC 0
99.52
Travis Job 153.3
Source Files on build 153
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #153
  • 7032be59 on github
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