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

Function make_node

tests/dashboard_api_test/graph.rs:38–64  ·  view source on GitHub ↗
(id: &str, kind: NodeKind, name: &str, file_path: &str, start_line: u32)

Source from the content-addressed store, hash-verified

36}
37
38fn make_node(id: &str, kind: NodeKind, name: &str, file_path: &str, start_line: u32) -> Node {
39 Node {
40 id: id.to_string(),
41 kind,
42 name: name.to_string(),
43 qualified_name: format!("crate::dashboard::{name}"),
44 file_path: file_path.to_string(),
45 start_line,
46 attrs_start_line: start_line,
47 end_line: start_line + 4,
48 start_column: 0,
49 end_column: 1,
50 signature: Some(format!("fn {name}()")),
51 docstring: Some(format!("Fixture documentation for {name}")),
52 visibility: Visibility::Pub,
53 is_async: false,
54 branches: 1,
55 loops: 0,
56 returns: 1,
57 max_nesting: 1,
58 unsafe_blocks: 0,
59 unchecked_calls: 0,
60 assertions: 0,
61 updated_at: 1_700_000_000,
62 parent_id: None,
63 }
64}
65
66async fn setup_project(project_root: &Path) -> TraceDecay {
67 write_file(

Callers 2

seed_orphan_nodeFunction · 0.70
seed_graph_fixtureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected