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

zarr-developers / zarr / 1416
100%

Build:
DEFAULT BRANCH: master
Ran 16 Feb 2019 01:17AM UTC
Jobs 4
Files 29
Run time 25min
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
1416

push

travis-ci

web-flow
Special case chunk encoding for `dict` chunk store (#359)

* Add `values` method to `CustomMapping`

For doing a quick pass through the values within a `MutableMapping`, it
is helpful to have the `values` method. This will be needed in some of
the tests that we are adding. So add a quick implementation of `values`
in the `CustomMapping`.

* Test stores contain bytes-like data

* Add a test to check that all values are bytes

Currently this is a somewhat loose requirement that not all stores
enforce. However it is a useful check to have in some cases.
Particularly this is a useful constraint with in-memory stores where
there is a concern that the data in the store might be manipulated
externally due to ndarray views. The bytes instances don't have this
problem as they are immutable and own their data. While views can be
take onto bytes instances, they will be read-only views and thus are not
a concern.

For other stores that place their data in some other storage backend
(e.g. on disk), this is less of a concern. Also other stores may choose
to represent their data in other ways (e.g. LMDB with `memoryview`s).
Manipulating the loaded data from these stores is less of a concern
since as it doesn't affect their actually contents, only an in-memory
representation. In these cases, it may make sense to disable this test.

* Disable bytes value test for LMDBStore w/buffers

It's possible to request that `LMDBStore` return `buffer`s/`memoryview`s
instead of returning `bytes` for values. This is incredibly useful as
LMDB is memory-mapped. So this avoids a copy when accessing the data.
However this means it will fail `test_store_has_bytes_values`. Though
this is ok as noted previously since that is not a hard requirement of
stores. So we just disable that test for this `LMDBStore` case. The
other `LMDBStore` case returns `bytes` instances instead (copying the
data); so, it passes this test without issues.

* Have CustomMapp... (continued)

26 of 26 new or added lines in 2 files covered. (100.0%)

8664 of 8664 relevant lines covered (100.0%)

3.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1416.1 16 Feb 2019 01:17AM UTC 0
98.86
Travis Job 1416.1
2 1416.2 16 Feb 2019 01:17AM UTC 0
98.83
Travis Job 1416.2
3 1416.3 16 Feb 2019 01:22AM UTC 0
98.83
Travis Job 1416.3
4 1416.4 16 Feb 2019 01:23AM UTC 0
99.39
Travis Job 1416.4
Source Files on build 1416
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1416
  • 569915d8 on github
  • Prev Build on master (#1417)
  • Next Build on master (#1433)
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