MCPcopy Create free account
hub / github.com/apache/paimon-rust / test_list_databases

Function test_list_databases

crates/paimon/tests/rest_api_test.rs:75–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73// ==================== Database Tests ====================
74#[tokio::test]
75async fn test_list_databases() {
76 let ctx = setup_test_server(vec!["default", "test_db1", "prod_db"]).await;
77
78 let dbs = ctx.api.list_databases().await.unwrap();
79
80 assert!(dbs.contains(&"default".to_string()));
81 assert!(dbs.contains(&"test_db1".to_string()));
82 assert!(dbs.contains(&"prod_db".to_string()));
83}
84
85#[tokio::test]
86async fn test_create_database() {

Callers

nothing calls this directly

Calls 2

setup_test_serverFunction · 0.85
list_databasesMethod · 0.45

Tested by

no test coverage detected