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

Function tear_down

library/src/utils/test_components.rs:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 use crate::bootstrap::connection_pool;
8
9 pub async fn tear_down() {
10 let pool = connection_pool().await;
11 sqlx::query("TRUNCATE community_board, community_comment, auth_account, auth_token_stat,service_outbox")
12 .execute(pool)
13 .await
14 .unwrap();
15 }
16
17 pub async fn run_test<T>(test: T)
18 where

Callers 1

run_testFunction · 0.70

Calls 1

connection_poolFunction · 0.85

Tested by

no test coverage detected