diff options
Diffstat (limited to 'development/libs/barrel/src/tests/common/runtime.rs')
-rw-r--r-- | development/libs/barrel/src/tests/common/runtime.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/development/libs/barrel/src/tests/common/runtime.rs b/development/libs/barrel/src/tests/common/runtime.rs new file mode 100644 index 000000000000..17ddb092bd4a --- /dev/null +++ b/development/libs/barrel/src/tests/common/runtime.rs @@ -0,0 +1,19 @@ +//! These tests check any kind of runtime-check behaviour +//! +//! They depend on all backends mostly for simplicity. + +use crate::{types, Migration, SqlVariant}; + +/// This test mostly exists to see if we panic +#[test] +fn generate_from() { + let mut m = Migration::new(); + m.create_table("testing", |table| { + table.add_column("id", types::primary()); + table.add_column("name", types::varchar(64)); + }); + + let _ = m.make_from(SqlVariant::Pg); + let _ = m.make_from(SqlVariant::Mysql); + let _ = m.make_from(SqlVariant::Sqlite); +} |