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

unicode-org / icu4x / 11337372727

15 Oct 2024 01:01AM UTC coverage: 75.555% (+0.03%) from 75.525%
11337372727

push

github

web-flow
Make time zone parsing non-fallible (#5665)

Based on #5666 

Zones that are added to TZDB in the future should parse as
`Etc/Unknown`. This means every unrecognized string should parse as
`Etc/Unknown`. This then means that the `time_zone_id` field can be
non-optional, as we can always use `Etc/Unknown` as the absent value.

The `metazone_id` field on the other hand need to be double optional:
once for not-resolved, and once for no-metazone-for-zone. This change
improves error cases in datetime formatting, i.e. `Some(None)` is a
UTS-35 fallback, whereas `None` is a `MissingInputField`.

44 of 92 new or added lines in 8 files covered. (47.83%)

19 existing lines in 9 files now uncovered.

54221 of 71764 relevant lines covered (75.55%)

646186.88 hits per line

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

92.41
/components/datetime/src/pattern/reference/parser.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