Extra node with no edges, for exercising the default-mode prune/fill rules.
(cg: &TraceDecay)
| 76 | |
| 77 | /// Extra node with no edges, for exercising the default-mode prune/fill rules. |
| 78 | async 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 | |
| 92 | async fn seed_graph_fixture(cg: &TraceDecay) { |
| 93 | let db = cg.db(); |
no test coverage detected