Create test fixture with fraud data
()
| 117 | |
| 118 | /// Create test fixture with fraud data |
| 119 | pub fn with_fraud_data() -> Result<Self, Box<dyn std::error::Error>> { |
| 120 | let mut fixture = Self::new()?; |
| 121 | |
| 122 | // Setup fresh graph with unique name for isolation |
| 123 | let graph_name = format!("fraud_graph_{}", fastrand::u64(..)); |
| 124 | fixture.setup_graph(&graph_name)?; |
| 125 | fixture.graph_name = Some(graph_name); |
| 126 | |
| 127 | // Insert fraud detection test data |
| 128 | fixture.insert_fraud_data()?; |
| 129 | |
| 130 | Ok(fixture) |
| 131 | } |
| 132 | |
| 133 | /// Insert fraud detection test data (accounts, merchants, transactions) |
| 134 | /// Call this after setup_graph() to populate a fresh graph with fraud data |
nothing calls this directly
no test coverage detected