#[path = "testutils/mod.rs"]
mod testutils;
use testutils::test_fixture::TestFixture;
#[test]
fn test_list_graphs_bug_fix_simple() {
let fixture = TestFixture::with_fraud_data().expect("Should create fixture with fraud data");
let result = fixture.query("CALL gql.list_graphs()").unwrap();
assert!(!result.rows.is_empty(), "Should have at least one graph");
let graph_name = result.rows[0]
.values
.get("graph_name")
.expect("Should have graph_name column");
assert!(
!matches!(graph_name, graphlite::Value::Null),
"BUG FIXED: graph_name should not be NULL, got: {:?}",
graph_name
);
let schema_name = result.rows[0]
.values
.get("schema_name")
.expect("Should have schema_name column");
assert!(
!matches!(schema_name, graphlite::Value::Null),
"BUG FIXED: schema_name should not be NULL, got: {:?}",
schema_name
);
if let graphlite::Value::String(name) = graph_name {}
if let graphlite::Value::String(schema) = schema_name {}
}