(parent_path: Option<&NodePath>, network_id: NetworkId, local_id: RuntimeNodeId)
| 335 | } |
| 336 | |
| 337 | fn child_path(parent_path: Option<&NodePath>, network_id: NetworkId, local_id: RuntimeNodeId) -> NodePath { |
| 338 | match parent_path { |
| 339 | None => NodePath::root(local_id), |
| 340 | Some(parent) => NodePath::nested(parent, parent.local_id, network_id, local_id), |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | /// Where a node sits in both the storage tree (`network_id`, `parent_path`) and the runtime tree |
| 345 | /// (`metadata_path`, `runtime_node_id`). `metadata_path` is the chain of runtime IDs from the root |
no test coverage detected