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

Kalimaha / pact-test
100%
master: 96%

Build:
Build:
LAST BUILD BRANCH: development
DEFAULT BRANCH: master
Repo Added 20 May 2017 07:23AM UTC
Files 27
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

LAST BUILD ON BRANCH fancy-syntax
branch: fancy-syntax
CHANGE BRANCH
x
Reset
  • fancy-syntax
  • acceptance_body
  • add-printouts
  • body_acceptance_tests
  • classifiers
  • config
  • consistent-return-types
  • consumer-test
  • consumers-acceptance
  • development
  • docker-tox
  • either
  • encapsulate-http
  • entry-point-scripts
  • fix_docker_test
  • mock_server
  • pact-helper
  • pact_broker_integration
  • refactor-with-either
  • service-consumer-test
  • setup_teardown_order
  • single_provider_test
  • switch-to-requests

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

Relevant lines Covered
Build:
Build:
208 RELEVANT LINES 207 COVERED LINES
2.99 HITS PER LINE
Source Files on fancy-syntax
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
153 fancy-syntax 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 asse... push 31 May 2017 03:26AM UTC Kalimaha travis-ci pending completion  
See All Builds (147)
  • Repo 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