()
| 12 | #[sea_orm_macros::test] |
| 13 | #[cfg(all(feature = "sqlx-postgres", feature = "postgres-array"))] |
| 14 | async fn main() -> Result<(), DbErr> { |
| 15 | let ctx = TestContext::new("collection_tests").await; |
| 16 | create_tables(&ctx.db).await?; |
| 17 | insert_collection(&ctx.db).await?; |
| 18 | update_collection(&ctx.db).await?; |
| 19 | select_collection(&ctx.db).await?; |
| 20 | ctx.delete().await; |
| 21 | |
| 22 | Ok(()) |
| 23 | } |
| 24 | |
| 25 | pub async fn insert_collection(db: &DatabaseConnection) -> Result<(), DbErr> { |
| 26 | use collection::*; |
nothing calls this directly
no test coverage detected