()
| 505 | |
| 506 | #[test] |
| 507 | fn test_function_planning() { |
| 508 | let fixture = TestFixture::new().expect("Failed to create test fixture"); |
| 509 | // Setup fresh graph for this test to avoid interference |
| 510 | fixture |
| 511 | .setup_graph("test_function_planning") |
| 512 | .expect("Failed to setup graph"); |
| 513 | // Re-insert fraud data since we have a fresh graph |
| 514 | fixture |
| 515 | .insert_fraud_data() |
| 516 | .expect("Failed to insert fraud data"); |
| 517 | |
| 518 | // Test query with function using fraud data |
| 519 | let _ = fixture.assert_query_succeeds("MATCH (a:Account) RETURN COUNT(a.id) as account_count"); |
| 520 | |
| 521 | // Verify we get the expected count from fraud data (50 accounts) |
| 522 | fixture.assert_first_value( |
| 523 | "MATCH (a:Account) RETURN COUNT(a.id) as account_count", |
| 524 | "account_count", |
| 525 | Value::Number(50.0), |
| 526 | ); |
| 527 | } |
| 528 | |
| 529 | #[test] |
| 530 | fn test_multiple_functions_planning() { |
nothing calls this directly
no test coverage detected