Create test fixture with simple data
()
| 75 | |
| 76 | /// Create test fixture with simple data |
| 77 | pub fn with_simple_data() -> Result<Self, Box<dyn std::error::Error>> { |
| 78 | let mut fixture = Self::new()?; |
| 79 | |
| 80 | // Setup fresh graph with unique name for isolation |
| 81 | let graph_name = format!("test_graph_{}", fastrand::u64(..)); |
| 82 | fixture.setup_graph(&graph_name)?; |
| 83 | fixture.graph_name = Some(graph_name); |
| 84 | |
| 85 | // Insert simple test data |
| 86 | fixture.insert_simple_data()?; |
| 87 | |
| 88 | Ok(fixture) |
| 89 | } |
| 90 | |
| 91 | /// Insert simple test data (test nodes and relationships) |
| 92 | /// Call this after setup_graph() to populate a fresh graph with simple data |
nothing calls this directly
no test coverage detected