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

jakirkham / zarr / 168
100%

Build:
DEFAULT BRANCH: master
Ran 16 Jan 2019 05:34AM UTC
Jobs 4
Files 29
Run time 4min
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
168

push

travis-ci

web-flow
Test `pop` with default argument (#380)

* Test `pop` with default argument

Adds another case to `test_pop` for stores generally, which merely tests
if `pop` can handle the default argument correctly when no key can be
found.

* Test `pop` with the default value of `None`

Some implementations of `pop` might carelessly set the `default` to
`None` when not passed. However this would make it impossible to
distinguish the case where the user passed `None` for the `default`
intentionally versus not passing anything for the `default`. The result
being both cases would raise a `KeyError`, but the error would be
incorrect in the first case. The usual way of solving this is to create
some dummy object and make that the `default` when if it is not set.
That way one can compare if the dummy object is seen and only raise
then. Thus passing `None` for the `default` would not error, but return
`None` if the `key` does not exist as expected. This test is added to
catch this potential oversight.

* Test `pop` with a non-trivial `bytes` object

8380 of 8380 relevant lines covered (100.0%)

3.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 168.1 16 Jan 2019 05:34AM UTC 0
98.84
Travis Job 168.1
2 168.2 16 Jan 2019 05:34AM UTC 0
98.83
Travis Job 168.2
3 168.3 16 Jan 2019 05:39AM UTC 0
98.83
Travis Job 168.3
4 168.4 16 Jan 2019 05:35AM UTC 0
99.4
Travis Job 168.4
Source Files on build 168
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #168
  • fefce3b0 on github
  • Prev Build on master (#167)
  • Next Build on master (#169)
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