diff options
Diffstat (limited to 'third_party/rust/fluent-testing/src/scenarios/mod.rs')
-rw-r--r-- | third_party/rust/fluent-testing/src/scenarios/mod.rs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/third_party/rust/fluent-testing/src/scenarios/mod.rs b/third_party/rust/fluent-testing/src/scenarios/mod.rs new file mode 100644 index 0000000000..f715468c14 --- /dev/null +++ b/third_party/rust/fluent-testing/src/scenarios/mod.rs @@ -0,0 +1,39 @@ +mod browser; +mod empty_resource_all_locales; +mod empty_resource_one_locale; +mod missing_optional_all_locales; +mod missing_optional_one_locale; +mod missing_required_all_locales; +mod missing_required_one_locale; +mod preferences; +mod simple; +pub mod structs; + +use structs::*; + +#[macro_export] +macro_rules! queries { + ( $( $x:expr ),* ) => { + { + Queries(vec![ + $( + $x.into(), + )* + ]) + } + }; +} + +pub fn get_scenarios() -> Vec<Scenario> { + vec![ + simple::get_scenario(), + browser::get_scenario(), + preferences::get_scenario(), + empty_resource_one_locale::get_scenario(), + empty_resource_all_locales::get_scenario(), + missing_optional_one_locale::get_scenario(), + missing_optional_all_locales::get_scenario(), + missing_required_one_locale::get_scenario(), + missing_required_all_locales::get_scenario(), + ] +} |