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

Function test_json_format_basic_query

graphlite/tests/json_format_tests.rs:35–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34#[test]
35fn test_json_format_basic_query() {
36 let fixture = TestFixture::empty().expect("Failed to create fixture");
37 setup_test_graph!(fixture);
38
39 // Insert test data
40 fixture
41 .query("INSERT (:Person {name: 'Alice', age: 30});")
42 .expect("Insert failed");
43
44 // Query and verify result structure
45 let result = fixture
46 .query("MATCH (p:Person) RETURN p.name, p.age;")
47 .expect("Query failed");
48
49 assert_eq!(result.rows.len(), 1);
50 assert_eq!(result.variables.len(), 2);
51 assert_eq!(result.variables[0], "p.name");
52 assert_eq!(result.variables[1], "p.age");
53}
54
55#[test]
56fn test_json_format_with_null_values() {

Callers

nothing calls this directly

Calls 1

queryMethod · 0.45

Tested by

no test coverage detected