use { async_trait::async_trait, gluesql_core::prelude::Glue, gluesql_git_storage::{GitStorage, StorageType}, std::fs::remove_dir_all, test_suite::*, }; struct GitStorageTester { glue: Glue, } #[async_trait(?Send)] impl Tester for GitStorageTester { async fn new(namespace: &str) -> Self { let path = format!("tmp/git_storage_file/{namespace}"); if let Err(e) = remove_dir_all(&path) { println!("fs::remove_file {:?}", e); }; let storage = GitStorage::init(&path, StorageType::File).expect("GitStorage::init - File"); let glue = Glue::new(storage); GitStorageTester { glue } } fn get_glue(&mut self) -> &mut Glue { &mut self.glue } } generate_store_tests!(tokio::test, GitStorageTester); generate_alter_table_tests!(tokio::test, GitStorageTester);