(id: &str, kind: NodeKind, name: &str, file_path: &str, start_line: u32)
| 36 | } |
| 37 | |
| 38 | fn 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 | |
| 66 | async fn setup_project(project_root: &Path) -> TraceDecay { |
| 67 | write_file( |
no outgoing calls
no test coverage detected