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

unicode-org / icu4x / 17047017551

18 Aug 2025 04:53PM UTC coverage: 72.774% (+0.02%) from 72.759%
17047017551

push

github

web-flow
zoneinfo64: make offset_idx/offset_at low level APIs that work purely on the transition table (#6872)

Split out of https://github.com/unicode-org/icu4x/pull/6842, requested
by Robert.

Currently, `offset_at` defaults to attempting to resolve the timezone
rule when given an out-of-range offset. This makes it a higher level API
that is attempting to resolve an offset against both the transitions
table and the offset table (which is what `for_timestamp` does). A lower
level API without this behavior where it *only* works with the
transitions table is useful for clarity, and will become more useful
when we implement prev/next transitions (where resolving
`offset_at(len)` as the next rule is not enough, you need to know which
precise date to resolve it as).

This also splits `Offset` (the return value of offset detection) and
`Transition` (the lower level return value of `offset_at`), because the
`since` value isn't useful to callers and will be wasted effort when
working on Rules.

I've spent some time improving the tests here: we now test more locales
by default; and test invariants.

Most of these locale tests don't test anything meaningful yet since
rules aren't implemented.

120 of 150 new or added lines in 2 files covered. (80.0%)

8 existing lines in 5 files now uncovered.

59874 of 82274 relevant lines covered (72.77%)

467479.24 hits per line

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

41.88
/components/datetime/src/pattern/names.rs


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