toasty_driver_integration_suite/
lib.rs

1#[macro_use]
2mod macros;
3#[macro_use]
4mod util;
5
6mod exec_log;
7pub use exec_log::ExecLog;
8
9mod helpers;
10pub use helpers::{column, columns, table_id};
11
12mod isolate;
13use isolate::Isolate;
14
15mod logging_driver;
16pub use logging_driver::{DriverOp, LoggingDriver};
17
18mod setup;
19pub use setup::Setup;
20
21mod test;
22pub use test::{Test, TestResult};
23
24pub mod scenarios;
25
26pub mod stmt;
27
28/// Test implementations
29pub mod tests;
30
31// Re-export the macros
32#[doc(hidden)]
33pub use toasty_driver_integration_suite_macros::generate_driver_test_variants;
34
35// Generate the test registry macro by scanning the test directory once at compile time
36// This creates a macro_rules! generate_driver_tests that can be called multiple times
37toasty_driver_integration_suite_macros::generate_test_registry!("src/tests");
38
39mod prelude {
40    pub(crate) use crate::{Test, columns, stmt::Any, table_id};
41    pub(crate) use toasty::Result;
42    pub(crate) use toasty::models;
43    pub(crate) use toasty::schema::Register;
44    pub(crate) type BoxError = Box<dyn std::error::Error + 'static>;
45
46    pub(crate) use crate::util::{NumUtil, SliceUtil};
47    pub(crate) use assert_struct::assert_struct;
48    pub(crate) use toasty_driver_integration_suite_macros::{driver_test, scenario};
49}