Skip to content

Commit 81298b8

Browse files
joeydewaalabonander
authored andcommitted
add regression test
1 parent e62bbd7 commit 81298b8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/postgres/test-attr.rs

+13
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,16 @@ async fn it_gets_comments(pool: PgPool) -> sqlx::Result<()> {
186186
async fn this_should_compile(_pool: PgPool) -> sqlx::Result<()> {
187187
Ok(())
188188
}
189+
190+
macro_rules! macro_using_test {
191+
($migrations: literal) => {
192+
#[sqlx::test(
193+
migrations = $migrations,
194+
fixtures(path = "../fixtures/postgres", scripts("users", "posts"))
195+
)]
196+
async fn macro_using_macro(_pool: PgPool) -> sqlx::Result<()> {
197+
Ok(())
198+
}
199+
};
200+
}
201+
macro_using_test!("tests/postgres/migrations");

0 commit comments

Comments
 (0)