Debian Codegraph @

tests/integration/jiff.rs

raw symbols SCIP
1 use craterust-analyzer cargo schemars 1.2.2 crate/::preluderust-analyzer cargo schemars 1.2.2 prelude/::*;
2 use jiff02rust-analyzer cargo jiff 0.2.35 crate/::civilrust-analyzer cargo jiff 0.2.35 civil/::{Daterust-analyzer cargo jiff 0.2.35 civil/date/Date#, DateTimerust-analyzer cargo jiff 0.2.35 civil/datetime/DateTime#, Timerust-analyzer cargo jiff 0.2.35 civil/time/Time#};
3 use jiff02rust-analyzer cargo jiff 0.2.35 crate/::{SignedDurationrust-analyzer cargo jiff 0.2.35 signed_duration/SignedDuration#, Spanrust-analyzer cargo jiff 0.2.35 span/Span#, Timestamprust-analyzer cargo jiff 0.2.35 timestamp/Timestamp#, Zonedrust-analyzer cargo jiff 0.2.35 zoned/Zoned#};
4
5 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(JsonSchemarust-analyzer cargo schemars_derive 1.2.2 JsonSchema:, Serializerust-analyzer cargo serde_derive 1.0.229 Serialize:, Deserializerust-analyzer cargo serde_derive 1.0.229 Deserialize:)]
6 struct JiffTypesrust-analyzer cargo schemars 1.2.2 jiff/JiffTypes# {
7 date_time_tsrust-analyzer cargo schemars 1.2.2 jiff/JiffTypes#date_time_ts.: Timestamprust-analyzer cargo jiff 0.2.35 timestamp/Timestamp#,
8 date_time_zonedrust-analyzer cargo schemars 1.2.2 jiff/JiffTypes#date_time_zoned.: Zonedrust-analyzer cargo jiff 0.2.35 zoned/Zoned#,
9 naive_daterust-analyzer cargo schemars 1.2.2 jiff/JiffTypes#naive_date.: Daterust-analyzer cargo jiff 0.2.35 civil/date/Date#,
10 naive_date_timerust-analyzer cargo schemars 1.2.2 jiff/JiffTypes#naive_date_time.: DateTimerust-analyzer cargo jiff 0.2.35 civil/datetime/DateTime#,
11 naive_timerust-analyzer cargo schemars 1.2.2 jiff/JiffTypes#naive_time.: Timerust-analyzer cargo jiff 0.2.35 civil/time/Time#,
12 durationrust-analyzer cargo schemars 1.2.2 jiff/JiffTypes#duration.: SignedDurationrust-analyzer cargo jiff 0.2.35 signed_duration/SignedDuration#,
13 spanrust-analyzer cargo schemars 1.2.2 jiff/JiffTypes#span.: Spanrust-analyzer cargo jiff 0.2.35 span/Span#,
14 }
15
16 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
17 fn jiffrust-analyzer cargo schemars 1.2.2 jiff/jiff().() {
18 testrust-analyzer cargo schemars 1.2.2 test!!(JiffTypesrust-analyzer cargo schemars 1.2.2 jiff/JiffTypes#).assert_snapshotrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_snapshot().();
19
20 testrust-analyzer cargo schemars 1.2.2 test!!(Timestamprust-analyzer cargo jiff 0.2.35 timestamp/Timestamp#)
21 .assert_allows_ser_roundtrip_defaultrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip_default().()
22 .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values().());
23
24 testrust-analyzer cargo schemars 1.2.2 test!!(Zonedrust-analyzer cargo jiff 0.2.35 zoned/Zoned#)
25 .assert_allows_ser_roundtrip_defaultrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip_default().()
26 .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_values_exceptrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values_except().(
27 Valuerust-analyzer cargo serde_json 1.0.151 value/Value#::is_stringrust-analyzer cargo serde_json 1.0.151 value/impl#[Value]is_string().,
28 "Custom format 'zoned-date-time', so arbitrary strings technically allowed by schema",
29 ));
30
31 testrust-analyzer cargo schemars 1.2.2 test!!(Daterust-analyzer cargo jiff 0.2.35 civil/date/Date#)
32 .assert_allows_ser_roundtrip_defaultrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip_default().()
33 .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values().());
34
35 testrust-analyzer cargo schemars 1.2.2 test!!(DateTimerust-analyzer cargo jiff 0.2.35 civil/datetime/DateTime#)
36 .assert_allows_ser_roundtrip_defaultrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip_default().()
37 .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_values_exceptrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values_except().(
38 Valuerust-analyzer cargo serde_json 1.0.151 value/Value#::is_stringrust-analyzer cargo serde_json 1.0.151 value/impl#[Value]is_string().,
39 "Custom format 'partial-date-time', so arbitrary strings technically allowed by schema",
40 ));
41
42 testrust-analyzer cargo schemars 1.2.2 test!!(Timerust-analyzer cargo jiff 0.2.35 civil/time/Time#)
43 .assert_allows_ser_roundtrip_defaultrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip_default().()
44 .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_values_exceptrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values_except().(
45 Valuerust-analyzer cargo serde_json 1.0.151 value/Value#::is_stringrust-analyzer cargo serde_json 1.0.151 value/impl#[Value]is_string().,
46 "Custom format 'date-time', so arbitrary strings technically allowed by schema",
47 ));
48
49 testrust-analyzer cargo schemars 1.2.2 test!!(SignedDurationrust-analyzer cargo jiff 0.2.35 signed_duration/SignedDuration#)
50 .assert_allows_ser_roundtrip_defaultrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip_default().()
51 .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values().());
52
53 testrust-analyzer cargo schemars 1.2.2 test!!(Spanrust-analyzer cargo jiff 0.2.35 span/Span#)
54 .assert_allows_ser_roundtrip_defaultrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip_default().()
55 .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values().());
56 }