MCPcopy Create free account
hub / github.com/apache/fory / buildTree

Function buildTree

integration_tests/idl_tests/javascript/roundtrip.ts:624–642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

622}
623
624function buildTree(): TreeNode {
625 const childA: TreeNode = {
626 id: "child-a",
627 name: "child-a",
628 children: [],
629 };
630 const childB: TreeNode = {
631 id: "child-b",
632 name: "child-b",
633 children: [],
634 };
635 childA.parent = childB;
636 childB.parent = childA;
637 return {
638 id: "root",
639 name: "root",
640 children: [childA, childA, childB],
641 };
642}
643
644function buildGraph(): Graph {
645 const nodeA = {

Callers 1

runRefRoundTripFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected