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

HumanCellAtlas / metadata-api / 37 / 1
98%
develop: 98%

Build:
DEFAULT BRANCH: develop
Ran 24 Aug 2018 10:16PM UTC
Files 9
Run time 23s
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

24 Aug 2018 10:14PM UTC coverage: 96.026% (+0.1%) from 95.925%
37.1

push

travis-ci

web-flow
Add helper function for accessing renamed fields (#18)

```
lookup(entity, 'new_name', 'old_name')
```

reads better than

```
entity.get('old_name') or entity['new_name']
```

because it mentions the new name first. More importantly, the latter prioritizes to the old name which may be problematic if the old name is reintroduced for yet another field in the future.

Unlike

```
entity.get('new_name') or entity['old_name']
```

the first two raise `KeyError: `new_name` which is a subtle but important difference.

580 of 604 relevant lines covered (96.03%)

0.96 hits per line

Source Files on job 37.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19
  • Travis Job 37.1
  • 42a49e30 on github
  • Prev Job for on develop (#33.1)
  • Next Job for on develop (#39.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