[][src]Attribute Macro orma_derive::test

#[test]

This macro produces an async test.

For each argument there is a function with the same name that provides the value for that argument and receives as input the name of the test function (as &str)

Example:

This code runs with edition 2018
fn connection(input: &str) -> &str {
    input
}

#[orma_derive::test]
async fn test_orma_test(connection: &str) {
    assert_eq!(data, "test_orma_test");
}