capability-skeleton-mock 0.1.0

A Rust crate for constructing and managing hierarchical skeleton structures with diverse node types, enabling advanced testing and simulation scenarios.
Documentation
// ---------------- [ File: capability-skeleton-mock/src/build_missing_root_skeleton.rs ]
crate::ix!();

/// A skeleton with no root (root_id(None)) => BFS is empty => used by tests that want “no root”.
pub fn make_missing_root_skeleton() -> Skeleton {
    // We build a single aggregator node but do NOT set root_id => BFS sees no root => depth=0 => None
    let node = SkeletonNodeBuilder::default()
        .id(99)
        .name("Orphan99")                   // CHANGED
        .original_key("Orphan99")           // CHANGED
        .build(NodeKind::Aggregate)
        .unwrap();

    SkeletonBuilder::default()
        .nodes(vec![node])
        .root_id(None)
        .build()
        .unwrap()
}