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

JuliaIO / Zarr.jl / 23071555273

13 Mar 2026 09:38PM UTC coverage: 82.336% (+0.1%) from 82.227%
23071555273

push

github

web-flow
Add AbstractChunkKeyEncoding and chunk key encoding registration (#234)

* Add AbstractChunkKeyEncoding, rename ChunkEncoding

* Add constraint

Co-authored-by: Anshul Singhvi <anshulsinghvi@gmail.com>

* chore: Update to new master

* feat: Add SuffixChunkKeyEncoding

* Registration system for chunk key encoding (#242)

* Implement a registration system for chunk key encoding

* refactor: Add typed ChunkKeyEncodingEntry to chunk key encoding registration

Introduce `ChunkKeyEncodingEntry` struct pairing
`return_type::Type{<:AbstractChunkKeyEncoding}` with `parser::Function`,
replacing the bare `Dict{String, Function}` registry.

- `register_chunk_key_encoding(parser, name, ::Type{T}=AbstractChunkKeyEncoding)`
  now stores a `ChunkKeyEncodingEntry` with the declared return type; the type
  is the last (optional) argument to work naturally with do-block syntax
- `parse_chunk_key_encoding` asserts the result against `entry.return_type`
  at runtime
- All built-in registrations updated with their specific concrete types
  (`ChunkKeyEncoding` for "default" and "v2", `SuffixChunkKeyEncoding` for
  "suffix")

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Anshul Singhvi <anshulsinghvi@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

62 of 65 new or added lines in 5 files covered. (95.38%)

1 existing line in 1 file now uncovered.

1403 of 1704 relevant lines covered (82.34%)

19672.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.12
/src/chunkkeyencoding.jl


Source Not Available

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