mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01:00
74 lines
2.4 KiB
Rust
74 lines
2.4 KiB
Rust
use std::path::PathBuf;
|
|
|
|
use manifest_dir_macros::exist_relative_path;
|
|
|
|
pub enum GetDump {
|
|
MoviesRawV1,
|
|
MoviesWithSettingsV1,
|
|
RubyGemsWithSettingsV1,
|
|
|
|
MoviesRawV2,
|
|
MoviesWithSettingsV2,
|
|
RubyGemsWithSettingsV2,
|
|
|
|
MoviesRawV3,
|
|
MoviesWithSettingsV3,
|
|
RubyGemsWithSettingsV3,
|
|
|
|
MoviesRawV4,
|
|
MoviesWithSettingsV4,
|
|
RubyGemsWithSettingsV4,
|
|
|
|
TestV5,
|
|
}
|
|
|
|
impl GetDump {
|
|
pub fn path(&self) -> PathBuf {
|
|
match self {
|
|
GetDump::MoviesRawV1 => {
|
|
exist_relative_path!("tests/assets/v1_v0.20.0_movies.dump").into()
|
|
}
|
|
GetDump::MoviesWithSettingsV1 => {
|
|
exist_relative_path!("tests/assets/v1_v0.20.0_movies_with_settings.dump").into()
|
|
}
|
|
GetDump::RubyGemsWithSettingsV1 => {
|
|
exist_relative_path!("tests/assets/v1_v0.20.0_rubygems_with_settings.dump").into()
|
|
}
|
|
|
|
GetDump::MoviesRawV2 => {
|
|
exist_relative_path!("tests/assets/v2_v0.21.1_movies.dump").into()
|
|
}
|
|
GetDump::MoviesWithSettingsV2 => {
|
|
exist_relative_path!("tests/assets/v2_v0.21.1_movies_with_settings.dump").into()
|
|
}
|
|
|
|
GetDump::RubyGemsWithSettingsV2 => {
|
|
exist_relative_path!("tests/assets/v2_v0.21.1_rubygems_with_settings.dump").into()
|
|
}
|
|
|
|
GetDump::MoviesRawV3 => {
|
|
exist_relative_path!("tests/assets/v3_v0.24.0_movies.dump").into()
|
|
}
|
|
GetDump::MoviesWithSettingsV3 => {
|
|
exist_relative_path!("tests/assets/v3_v0.24.0_movies_with_settings.dump").into()
|
|
}
|
|
GetDump::RubyGemsWithSettingsV3 => {
|
|
exist_relative_path!("tests/assets/v3_v0.24.0_rubygems_with_settings.dump").into()
|
|
}
|
|
|
|
GetDump::MoviesRawV4 => {
|
|
exist_relative_path!("tests/assets/v4_v0.25.2_movies.dump").into()
|
|
}
|
|
GetDump::MoviesWithSettingsV4 => {
|
|
exist_relative_path!("tests/assets/v4_v0.25.2_movies_with_settings.dump").into()
|
|
}
|
|
GetDump::RubyGemsWithSettingsV4 => {
|
|
exist_relative_path!("tests/assets/v4_v0.25.2_rubygems_with_settings.dump").into()
|
|
}
|
|
GetDump::TestV5 => {
|
|
exist_relative_path!("tests/assets/v5_v0.28.0_test_dump.dump").into()
|
|
}
|
|
}
|
|
}
|
|
}
|