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

zbraniecki / icu4x / 17537320435

07 Sep 2025 05:00PM UTC coverage: 72.904% (-1.3%) from 74.164%
17537320435

push

github

web-flow
Export a zoneinfo64 const for testing (#6916)

This is useful for other crates for testing, and we vendor a copy of
this data already.

It's also easier for us to vendor it since the data is under the same
license. If temporal_rs wishes to vendor it the licensing situation gets
more complicated.

<!--
Thank you for your pull request to ICU4X!

Reminder: try to use [Conventional
Comments](https://conventionalcomments.org/) to make comments clearer.

Please see
https://github.com/unicode-org/icu4x/blob/main/CONTRIBUTING.md for
general
information on contributing to ICU4X.
-->

1 of 1 new or added line in 1 file covered. (100.0%)

9526 existing lines in 484 files now uncovered.

60429 of 82889 relevant lines covered (72.9%)

468973.11 hits per line

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

14.29
/components/datetime/src/error.rs
1
// This file is part of ICU4X. For terms of use, please see the file
2
// called LICENSE at the top level of the ICU4X source tree
3
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4

5
use crate::pattern::PatternLoadError;
6
use displaydoc::Display;
7
use icu_calendar::AnyCalendarKind;
8
use icu_provider::DataError;
9

10
/// An error from constructing a formatter.
UNCOV
11
#[derive(Display, Debug, Copy, Clone, PartialEq)]
×
12
#[non_exhaustive]
13
pub enum DateTimeFormatterLoadError {
14
    /// An error while loading display names for a field.
UNCOV
15
    #[displaydoc("{0}")]
×
UNCOV
16
    Names(PatternLoadError),
×
17
    /// An error while loading some other required data,
18
    /// such as skeleton patterns or calendar conversions.
UNCOV
19
    #[displaydoc("{0}")]
×
UNCOV
20
    Data(DataError),
×
21
}
22

23
impl core::error::Error for DateTimeFormatterLoadError {}
24

25
impl From<DataError> for DateTimeFormatterLoadError {
26
    fn from(error: DataError) -> Self {
×
UNCOV
27
        Self::Data(error)
×
UNCOV
28
    }
×
29
}
30

31
/// The specific field for which an error occurred.
32
#[derive(Display, Debug, Copy, Clone, PartialEq)]
4✔
33
pub struct ErrorField(pub(crate) crate::provider::fields::Field);
2✔
34

35
/// An error from mixing calendar types in a formatter.
36
#[derive(Display, Debug, Copy, Clone, PartialEq)]
×
37
#[displaydoc("DateTimeFormatter for {this_kind} calendar was given a {date_kind:?} calendar")]
×
38
#[non_exhaustive]
39
pub struct MismatchedCalendarError {
40
    /// The calendar kind of the target object (formatter).
UNCOV
41
    pub this_kind: AnyCalendarKind,
×
42
    /// The calendar kind of the input object (date being formatted).
43
    /// Can be `None` if the input calendar was not specified.
UNCOV
44
    pub date_kind: Option<AnyCalendarKind>,
×
45
}
46

47
impl core::error::Error for MismatchedCalendarError {}
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