MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / test_drop_schema_if_exists

Function test_drop_schema_if_exists

graphlite/tests/ddl_shared_tests.rs:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63#[test]
64fn test_drop_schema_if_exists() {
65 let fixture = get_shared_fixture();
66
67 let test_schema = "if_exists_test_schema";
68
69 // Test DROP SCHEMA IF EXISTS on existing schema - should succeed
70 fixture.assert_query_succeeds(&format!("CREATE SCHEMA IF NOT EXISTS {}", test_schema));
71
72 fixture.assert_query_succeeds(&format!("DROP SCHEMA IF EXISTS {}", test_schema));
73
74 // Test DROP SCHEMA IF EXISTS on non-existent schema - should succeed
75 fixture.assert_query_succeeds("DROP SCHEMA IF EXISTS nonexistent_schema");
76}
77
78#[test]
79fn test_ddl_error_cases() {

Callers

nothing calls this directly

Calls 2

get_shared_fixtureFunction · 0.85
assert_query_succeedsMethod · 0.45

Tested by

no test coverage detected