mool 0.1.2

A source-first Rust database toolkit for typed SQL queries, migrations, and model metadata
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Verifies public macro contracts with compile-pass and compile-fail fixtures.
#[test]
fn public_macro_contracts_compile_as_documented() {
    let tests = trybuild::TestCases::new();
    tests.pass("tests/compile/pass/public_api.rs");
    tests.pass("tests/compile/pass/sqlx_compat.rs");
    tests.pass("tests/compile/pass/mock_available_debug.rs");
    #[cfg(feature = "migrations")]
    tests.pass("tests/compile/pass/embedded_migrations.rs");

    tests.compile_fail("tests/compile/fail/filterable_invalid_op.rs");
    tests.compile_fail("tests/compile/fail/model_sql_enum_conflicting_type.rs");
    tests.compile_fail("tests/compile/fail/sql_enum_data_variant.rs");
    tests.compile_fail("tests/compile/fail/sql_enum_int_missing_code.rs");
}