use meili-snap in the dump

This commit is contained in:
Irevoire 2022-10-26 18:49:47 +02:00 committed by Clément Renault
parent 866a3676eb
commit 6aa816d96a
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
12 changed files with 11 additions and 2 deletions

1
Cargo.lock generated
View File

@ -1107,7 +1107,6 @@ dependencies = [
"big_s", "big_s",
"flate2", "flate2",
"http", "http",
"insta",
"log", "log",
"maplit", "maplit",
"meili-snap", "meili-snap",

View File

@ -23,7 +23,6 @@ uuid = { version = "1.1.2", features = ["serde", "v4"] }
[dev-dependencies] [dev-dependencies]
big_s = "1.0.2" big_s = "1.0.2"
insta = { version = "1.19.1", features = ["json", "redactions"] }
maplit = "1.0.2" maplit = "1.0.2"
meili-snap = { path = "../meili-snap" } meili-snap = { path = "../meili-snap" }
meilisearch-types = { path = "../meilisearch-types" } meilisearch-types = { path = "../meilisearch-types" }

View File

@ -375,6 +375,7 @@ pub(crate) mod test {
use std::io::BufReader; use std::io::BufReader;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use tempfile::TempDir; use tempfile::TempDir;
use super::*; use super::*;

View File

@ -341,6 +341,7 @@ pub(crate) mod test {
use std::io::BufReader; use std::io::BufReader;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use tempfile::TempDir; use tempfile::TempDir;
use super::*; use super::*;

View File

@ -377,6 +377,7 @@ pub(crate) mod test {
use std::io::BufReader; use std::io::BufReader;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use tempfile::TempDir; use tempfile::TempDir;
use super::*; use super::*;

View File

@ -395,6 +395,7 @@ pub(crate) mod test {
use std::io::BufReader; use std::io::BufReader;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use tempfile::TempDir; use tempfile::TempDir;
use super::*; use super::*;

View File

@ -184,6 +184,8 @@ impl From<CompatIndexV5ToV6> for DumpIndexReader {
pub(crate) mod test { pub(crate) mod test {
use std::fs::File; use std::fs::File;
use meili_snap::insta;
use super::*; use super::*;
#[test] #[test]

View File

@ -205,6 +205,7 @@ pub(crate) mod test {
use std::io::BufReader; use std::io::BufReader;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use tempfile::TempDir; use tempfile::TempDir;
use super::*; use super::*;

View File

@ -221,6 +221,7 @@ pub(crate) mod test {
use std::io::BufReader; use std::io::BufReader;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use tempfile::TempDir; use tempfile::TempDir;
use super::*; use super::*;

View File

@ -213,6 +213,7 @@ pub(crate) mod test {
use std::io::BufReader; use std::io::BufReader;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use tempfile::TempDir; use tempfile::TempDir;
use super::*; use super::*;

View File

@ -255,6 +255,7 @@ pub(crate) mod test {
use std::io::BufReader; use std::io::BufReader;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use tempfile::TempDir; use tempfile::TempDir;
use super::*; use super::*;

View File

@ -191,6 +191,7 @@ pub(crate) mod test {
use std::str::FromStr; use std::str::FromStr;
use flate2::bufread::GzDecoder; use flate2::bufread::GzDecoder;
use meili_snap::insta;
use meilisearch_types::settings::Unchecked; use meilisearch_types::settings::Unchecked;
use super::*; use super::*;