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

Method with_simple_data

graphlite/tests/testutils/test_fixture.rs:77–89  ·  view source on GitHub ↗

Create test fixture with simple data

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

setup_graphMethod · 0.80
insert_simple_dataMethod · 0.80

Tested by

no test coverage detected