MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / main

Function main

tests/collection_tests.rs:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12#[sea_orm_macros::test]
13#[cfg(all(feature = "sqlx-postgres", feature = "postgres-array"))]
14async 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
25pub async fn insert_collection(db: &DatabaseConnection) -> Result<(), DbErr> {
26 use collection::*;

Callers

nothing calls this directly

Calls 6

insert_collectionFunction · 0.85
update_collectionFunction · 0.85
select_collectionFunction · 0.85
newFunction · 0.50
create_tablesFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected