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

Function test_connection

tests/database.rs:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16 #[tokio::test]
17 async fn test_connection() {
18 run_test(async {
19 let pool = connection_pool().await;
20
21 match sqlx::query("SELECT 1").execute(pool).await {
22 Ok(_val) => (),
23 Err(_e) => panic!("Test Fail!"),
24 };
25 })
26 .await;
27 }
28
29 #[tokio::test]
30 async fn test_transaction_commit() {

Callers

nothing calls this directly

Calls 2

connection_poolFunction · 0.85
run_testFunction · 0.70

Tested by

no test coverage detected