...

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

View as plain text