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

Method with_fraud_data

graphlite/tests/testutils/test_fixture.rs:119–131  ·  view source on GitHub ↗

Create test fixture with fraud data

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

setup_graphMethod · 0.80
insert_fraud_dataMethod · 0.80

Tested by

no test coverage detected