MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / seed_orphan_node

Function seed_orphan_node

tests/dashboard_api_test/graph.rs:78–90  ·  view source on GitHub ↗

Extra node with no edges, for exercising the default-mode prune/fill rules.

(cg: &TraceDecay)

Source from the content-addressed store, hash-verified

76
77/// Extra node with no edges, for exercising the default-mode prune/fill rules.
78async fn seed_orphan_node(cg: &TraceDecay) {
79 let db = cg.db();
80 let orphan = make_node(
81 "n-orphan",
82 NodeKind::Function,
83 "orphan_helper",
84 "src/dashboard/orphan.rs",
85 1,
86 );
87 if let Err(err) = db.insert_nodes(std::slice::from_ref(&orphan)).await {
88 panic!("failed to seed orphan node: {err}");
89 }
90}
91
92async fn seed_graph_fixture(cg: &TraceDecay) {
93 let db = cg.db();

Callers 1

Calls 3

insert_nodesMethod · 0.80
make_nodeFunction · 0.70
dbMethod · 0.45

Tested by

no test coverage detected