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

Function test_simple_match_set

graphlite/tests/dml_tests.rs:446–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

444
445#[test]
446fn test_simple_match_set() {
447 let fixture = TestFixture::new().expect("Failed to create test fixture");
448 // Setup fresh graph for this test to avoid interference
449 fixture
450 .setup_graph("test_simple_match_set")
451 .expect("Failed to setup graph");
452 // Re-insert fraud data since we have a fresh graph
453 fixture
454 .insert_fraud_data()
455 .expect("Failed to insert fraud data");
456
457 // Test simple MATCH SET without complex patterns
458 fixture.assert_query_succeeds(
459 "MATCH (a:Account)
460 WHERE a.balance > 100000
461 SET a.tier = 'premium'",
462 );
463}
464
465#[test]
466fn test_complex_dml_scenarios() {

Callers

nothing calls this directly

Calls 3

setup_graphMethod · 0.80
insert_fraud_dataMethod · 0.80
assert_query_succeedsMethod · 0.45

Tested by

no test coverage detected