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

Function test_json_format_with_limit

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

Source from the content-addressed store, hash-verified

261
262#[test]
263fn test_json_format_with_limit() {
264 let fixture = TestFixture::empty().expect("Failed to create fixture");
265 setup_test_graph!(fixture);
266
267 // Insert multiple records in one statement
268 fixture
269 .query(
270 "INSERT (:Person {id: 1}), (:Person {id: 2}), (:Person {id: 3}), \
271 (:Person {id: 4}), (:Person {id: 5}), (:Person {id: 6}), \
272 (:Person {id: 7}), (:Person {id: 8}), (:Person {id: 9}), \
273 (:Person {id: 10});",
274 )
275 .expect("Insert failed");
276
277 // Query with LIMIT
278 let result = fixture
279 .query("MATCH (p:Person) RETURN p.id LIMIT 3;")
280 .expect("Query failed");
281
282 // Should return exactly 3 rows
283 assert_eq!(result.rows.len(), 3);
284 assert_eq!(result.variables.len(), 1);
285}
286
287#[test]
288fn test_json_format_with_order_by() {

Callers

nothing calls this directly

Calls 1

queryMethod · 0.45

Tested by

no test coverage detected