MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / tear_down

Function tear_down

tests/helpers.rs:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 use uuid::Uuid;
19
20 pub async fn tear_down() {
21 let pool = connection_pool().await;
22 sqlx::query("TRUNCATE community_board, community_comment, auth_account, auth_token_stat,service_outbox")
23 .execute(pool)
24 .await
25 .unwrap();
26 }
27
28 pub fn board_repository_helper(executor: Arc<RwLock<Executor>>) -> Repository<BoardAggregate> {
29 Repository::new(executor)

Callers 1

run_testFunction · 0.70

Calls 1

connection_poolFunction · 0.85

Tested by

no test coverage detected