...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2oracle/TestMove

     1{
     2  "graph": {
     3    "name": "",
     4    "isFolderOnly": false,
     5    "ast": {
     6      "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:0:0-2:0:9",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:0:0-0:6:6",
    11            "edges": [
    12              {
    13                "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:0:0-0:6:6",
    14                "src": {
    15                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:0:0-0:1:1",
    16                  "path": [
    17                    {
    18                      "unquoted_string": {
    19                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:0:0-0:1:1",
    20                        "value": [
    21                          {
    22                            "string": "x",
    23                            "raw_string": "x"
    24                          }
    25                        ]
    26                      }
    27                    }
    28                  ]
    29                },
    30                "src_arrow": "",
    31                "dst": {
    32                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:5:5-0:6:6",
    33                  "path": [
    34                    {
    35                      "unquoted_string": {
    36                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:5:5-0:6:6",
    37                        "value": [
    38                          {
    39                            "string": "z",
    40                            "raw_string": "z"
    41                          }
    42                        ]
    43                      }
    44                    }
    45                  ]
    46                },
    47                "dst_arrow": ">"
    48              }
    49            ],
    50            "primary": {},
    51            "value": {}
    52          }
    53        },
    54        {
    55          "map_key": {
    56            "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,1:0:7-1:1:8",
    57            "key": {
    58              "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,1:0:7-1:1:8",
    59              "path": [
    60                {
    61                  "unquoted_string": {
    62                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,1:0:7-1:1:8",
    63                    "value": [
    64                      {
    65                        "string": "y",
    66                        "raw_string": "y"
    67                      }
    68                    ]
    69                  }
    70                }
    71              ]
    72            },
    73            "primary": {},
    74            "value": {}
    75          }
    76        }
    77      ]
    78    },
    79    "root": {
    80      "id": "",
    81      "id_val": "",
    82      "attributes": {
    83        "label": {
    84          "value": ""
    85        },
    86        "labelDimensions": {
    87          "width": 0,
    88          "height": 0
    89        },
    90        "style": {},
    91        "near_key": null,
    92        "shape": {
    93          "value": ""
    94        },
    95        "direction": {
    96          "value": ""
    97        },
    98        "constraint": null
    99      },
   100      "zIndex": 0
   101    },
   102    "edges": [
   103      {
   104        "index": 0,
   105        "isCurve": false,
   106        "src_arrow": false,
   107        "dst_arrow": true,
   108        "references": [
   109          {
   110            "map_key_edge_index": 0
   111          }
   112        ],
   113        "attributes": {
   114          "label": {
   115            "value": ""
   116          },
   117          "labelDimensions": {
   118            "width": 0,
   119            "height": 0
   120          },
   121          "style": {},
   122          "near_key": null,
   123          "shape": {
   124            "value": ""
   125          },
   126          "direction": {
   127            "value": ""
   128          },
   129          "constraint": null
   130        },
   131        "zIndex": 0
   132      }
   133    ],
   134    "objects": [
   135      {
   136        "id": "x",
   137        "id_val": "x",
   138        "references": [
   139          {
   140            "key": {
   141              "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:0:0-0:1:1",
   142              "path": [
   143                {
   144                  "unquoted_string": {
   145                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:0:0-0:1:1",
   146                    "value": [
   147                      {
   148                        "string": "x",
   149                        "raw_string": "x"
   150                      }
   151                    ]
   152                  }
   153                }
   154              ]
   155            },
   156            "key_path_index": 0,
   157            "map_key_edge_index": 0
   158          }
   159        ],
   160        "attributes": {
   161          "label": {
   162            "value": "x"
   163          },
   164          "labelDimensions": {
   165            "width": 0,
   166            "height": 0
   167          },
   168          "style": {},
   169          "near_key": null,
   170          "shape": {
   171            "value": "rectangle"
   172          },
   173          "direction": {
   174            "value": ""
   175          },
   176          "constraint": null
   177        },
   178        "zIndex": 0
   179      },
   180      {
   181        "id": "z",
   182        "id_val": "z",
   183        "references": [
   184          {
   185            "key": {
   186              "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:5:5-0:6:6",
   187              "path": [
   188                {
   189                  "unquoted_string": {
   190                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,0:5:5-0:6:6",
   191                    "value": [
   192                      {
   193                        "string": "z",
   194                        "raw_string": "z"
   195                      }
   196                    ]
   197                  }
   198                }
   199              ]
   200            },
   201            "key_path_index": 0,
   202            "map_key_edge_index": 0
   203          }
   204        ],
   205        "attributes": {
   206          "label": {
   207            "value": "z"
   208          },
   209          "labelDimensions": {
   210            "width": 0,
   211            "height": 0
   212          },
   213          "style": {},
   214          "near_key": null,
   215          "shape": {
   216            "value": "rectangle"
   217          },
   218          "direction": {
   219            "value": ""
   220          },
   221          "constraint": null
   222        },
   223        "zIndex": 0
   224      },
   225      {
   226        "id": "y",
   227        "id_val": "y",
   228        "references": [
   229          {
   230            "key": {
   231              "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,1:0:7-1:1:8",
   232              "path": [
   233                {
   234                  "unquoted_string": {
   235                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge_ref_2.d2,1:0:7-1:1:8",
   236                    "value": [
   237                      {
   238                        "string": "y",
   239                        "raw_string": "y"
   240                      }
   241                    ]
   242                  }
   243                }
   244              ]
   245            },
   246            "key_path_index": 0,
   247            "map_key_edge_index": -1
   248          }
   249        ],
   250        "attributes": {
   251          "label": {
   252            "value": "y"
   253          },
   254          "labelDimensions": {
   255            "width": 0,
   256            "height": 0
   257          },
   258          "style": {},
   259          "near_key": null,
   260          "shape": {
   261            "value": "rectangle"
   262          },
   263          "direction": {
   264            "value": ""
   265          },
   266          "constraint": null
   267        },
   268        "zIndex": 0
   269      }
   270    ]
   271  },
   272  "err": "<nil>"
   273}

View as plain text