| 1 | #![allow(clippy::disallowed_names)] |
| 2 | |
| 3 | #[cfg(feature = "arrayvec07")] |
| 4 | mod arrayvecrust-analyzer cargo schemars 1.2.2 arrayvec/; |
| 5 | mod attr_orderrust-analyzer cargo schemars 1.2.2 attr_order/; |
| 6 | mod boundrust-analyzer cargo schemars 1.2.2 bound/; |
| 7 | #[cfg(feature = "bytes1")] |
| 8 | mod bytesrust-analyzer cargo schemars 1.2.2 bytes/; |
| 9 | #[cfg(feature = "chrono04")] |
| 10 | mod chronorust-analyzer cargo schemars 1.2.2 chrono/; |
| 11 | mod contractrust-analyzer cargo schemars 1.2.2 contract/; |
| 12 | mod crate_aliasrust-analyzer cargo schemars 1.2.2 crate_alias/; |
| 13 | #[cfg(any(feature = "rust_decimal1", feature = "bigdecimal04"))] |
| 14 | mod decimalrust-analyzer cargo schemars 1.2.2 decimal/; |
| 15 | mod defaultrust-analyzer cargo schemars 1.2.2 default/; |
| 16 | mod deprecatedrust-analyzer cargo schemars 1.2.2 deprecated/; |
| 17 | mod docsrust-analyzer cargo schemars 1.2.2 docs/; |
| 18 | #[cfg(feature = "either1")] |
| 19 | mod eitherrust-analyzer cargo schemars 1.2.2 either/; |
| 20 | mod enum_reprrust-analyzer cargo schemars 1.2.2 enum_repr/; |
| 21 | mod enumsrust-analyzer cargo schemars 1.2.2 enums/; |
| 22 | mod enums_deny_unknown_fieldsrust-analyzer cargo schemars 1.2.2 enums_deny_unknown_fields/; |
| 23 | mod enums_flattenedrust-analyzer cargo schemars 1.2.2 enums_flattened/; |
| 24 | mod enums_option_flattenedrust-analyzer cargo schemars 1.2.2 enums_option_flattened/; |
| 25 | mod enums_ref_variantsrust-analyzer cargo schemars 1.2.2 enums_ref_variants/; |
| 26 | mod enums_untagged_variantrust-analyzer cargo schemars 1.2.2 enums_untagged_variant/; |
| 27 | mod examplesrust-analyzer cargo schemars 1.2.2 examples/; |
| 28 | mod extendrust-analyzer cargo schemars 1.2.2 extend/; |
| 29 | mod flattenrust-analyzer cargo schemars 1.2.2 flatten/; |
| 30 | mod from_intorust-analyzer cargo schemars 1.2.2 from_into/; |
| 31 | mod from_valuerust-analyzer cargo schemars 1.2.2 from_value/; |
| 32 | mod garderust-analyzer cargo schemars 1.2.2 garde/; |
| 33 | #[cfg(feature = "indexmap2")] |
| 34 | mod indexmaprust-analyzer cargo schemars 1.2.2 indexmap/; |
| 35 | mod inline_subschemasrust-analyzer cargo schemars 1.2.2 inline_subschemas/; |
| 36 | #[cfg(feature = "jiff02")] |
| 37 | mod jiffrust-analyzer cargo schemars 1.2.2 jiff/; |
| 38 | mod macrosrust-analyzer cargo schemars 1.2.2 macros/; |
| 39 | mod maprust-analyzer cargo schemars 1.2.2 map/; |
| 40 | mod remote_deriverust-analyzer cargo schemars 1.2.2 remote_derive/; |
| 41 | mod same_namerust-analyzer cargo schemars 1.2.2 same_name/; |
| 42 | mod schema_namerust-analyzer cargo schemars 1.2.2 schema_name/; |
| 43 | mod schema_withrust-analyzer cargo schemars 1.2.2 schema_with/; |
| 44 | #[cfg(feature = "semver1")] |
| 45 | mod semverrust-analyzer cargo schemars 1.2.2 semver/; |
| 46 | mod settingsrust-analyzer cargo schemars 1.2.2 settings/; |
| 47 | mod skiprust-analyzer cargo schemars 1.2.2 skip/; |
| 48 | #[cfg(feature = "smallvec1")] |
| 49 | mod smallvecrust-analyzer cargo schemars 1.2.2 smallvec/; |
| 50 | #[cfg(any(feature = "smol_str02", feature = "smol_str03"))] |
| 51 | mod smol_strrust-analyzer cargo schemars 1.2.2 smol_str/; |
| 52 | mod std_typesrust-analyzer cargo schemars 1.2.2 std_types/; |
| 53 | mod structsrust-analyzer cargo schemars 1.2.2 structs/; |
| 54 | mod transformrust-analyzer cargo schemars 1.2.2 transform/; |
| 55 | mod transparentrust-analyzer cargo schemars 1.2.2 transparent/; |
| 56 | mod unsetrust-analyzer cargo schemars 1.2.2 unset/; |
| 57 | #[cfg(feature = "url2")] |
| 58 | mod urlrust-analyzer cargo schemars 1.2.2 url/; |
| 59 | #[cfg(feature = "uuid1")] |
| 60 | mod uuidrust-analyzer cargo schemars 1.2.2 uuid/; |
| 61 | mod validatorrust-analyzer cargo schemars 1.2.2 validator/; |
| 62 | |
| 63 | mod preluderust-analyzer cargo schemars 1.2.2 prelude/ { |
| 64 | pub(craterust-analyzer cargo schemars 1.2.2 crate/) use craterust-analyzer cargo schemars 1.2.2 crate/::testrust-analyzer cargo schemars 1.2.2 test!; |
| 65 | pub(craterust-analyzer cargo schemars 1.2.2 crate/) use craterust-analyzer cargo schemars 1.2.2 crate/::test_helperrust-analyzer cargo schemars 1.2.2 test_helper/::{arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values()., arbitrary_values_exceptrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values_except().}; |
| 66 | pub(craterust-analyzer cargo schemars 1.2.2 crate/) use schemarsrust-analyzer cargo schemars 1.2.2 crate/::JsonSchemarust-analyzer cargo schemars 1.2.2 JsonSchema#; |
| 67 | pub(craterust-analyzer cargo schemars 1.2.2 crate/) use serderust-analyzer cargo serde 1.0.229 crate/::{Deserializerust-analyzer cargo serde_core 1.0.229 de/Deserialize#, Serializerust-analyzer cargo serde_core 1.0.229 ser/Serialize#}; |
| 68 | pub(craterust-analyzer cargo schemars 1.2.2 crate/) use serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::{jsonrust-analyzer cargo serde_json 1.0.151 macros/json!, Valuerust-analyzer cargo serde_json 1.0.151 value/Value#}; |
| 69 | } |
| 70 | |
| 71 | mod test_helperrust-analyzer cargo schemars 1.2.2 test_helper/; |
| 72 | |
| 73 | #[macro_export] |
| 74 | macro_rules! test_namerust-analyzer cargo schemars 1.2.2 test_name! { |
| 75 | () => {{ |
| 76 | fn f() {} |
| 77 | fn type_name_of_val<T>(_: T) -> &'static str { |
| 78 | core::any::type_name::<T>() |
| 79 | } |
| 80 | let test_fn_name = type_name_of_val(f) |
| 81 | .trim_end_matches("::f") |
| 82 | .split("::") |
| 83 | .last() |
| 84 | .unwrap(); |
| 85 | format!("{}~{}", core::file!(), test_fn_name) |
| 86 | }}; |
| 87 | } |
| 88 | |
| 89 | #[macro_export] |
| 90 | macro_rules! testrust-analyzer cargo schemars 1.2.2 test! { |
| 91 | ($type:ty, $settings:expr) => { |
| 92 | $crate::test_helper::TestHelper::<$type>::new($crate::test_name!(), $settings) |
| 93 | }; |
| 94 | ($type:ty) => { |
| 95 | test!($type, schemars::generate::SchemaSettings::default()) |
| 96 | }; |
| 97 | (value: $value:expr, $settings:expr) => { |
| 98 | $crate::test_helper::TestHelper::new_for_value($crate::test_name!(), $settings, $value) |
| 99 | }; |
| 100 | (value: $value:expr) => { |
| 101 | test!(value: $value, schemars::generate::SchemaSettings::default()) |
| 102 | }; |
| 103 | } |