add tests for IndexStore

This commit is contained in:
mpostma 2021-01-29 19:14:23 +01:00
parent da056a6877
commit ccb7104dee
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
2 changed files with 153 additions and 20 deletions

View file

@ -63,6 +63,24 @@ pub struct IndexerOpts {
#[structopt(long)]
pub indexing_jobs: Option<usize>,
}
#[cfg(test)]
impl Default for IndexerOpts {
fn default() -> Self {
Self {
log_every_n: 0,
max_nb_chunks: None,
max_memory: Byte::from_str("0Kb").unwrap(),
linked_hash_map_size: 0,
chunk_compression_type: CompressionType::None,
chunk_compression_level: None,
chunk_fusing_shrink_size: Byte::from_str("0Kb").unwrap(),
enable_chunk_fusing: false,
indexing_jobs: None,
}
}
}
const POSSIBLE_ENV: [&str; 2] = ["development", "production"];
#[derive(Debug, Clone, StructOpt)]