...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.exp.json

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

     1{
     2  "graph": {
     3    "name": "",
     4    "isFolderOnly": false,
     5    "ast": {
     6      "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:0:0-3:0:16",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:0:0-0:6:6",
    11            "edges": [
    12              {
    13                "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:0:0-0:6:6",
    14                "src": {
    15                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:0:0-0:1:1",
    16                  "path": [
    17                    {
    18                      "unquoted_string": {
    19                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:0:0-0:1:1",
    20                        "value": [
    21                          {
    22                            "string": "a",
    23                            "raw_string": "a"
    24                          }
    25                        ]
    26                      }
    27                    }
    28                  ]
    29                },
    30                "src_arrow": "",
    31                "dst": {
    32                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:5:5-0:6:6",
    33                  "path": [
    34                    {
    35                      "unquoted_string": {
    36                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:5:5-0:6:6",
    37                        "value": [
    38                          {
    39                            "string": "b",
    40                            "raw_string": "b"
    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/TestReconnectEdge/middle_chain_src.d2,1:0:7-1:6:13",
    57            "edges": [
    58              {
    59                "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:0:7-1:6:13",
    60                "src": {
    61                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:0:7-1:1:8",
    62                  "path": [
    63                    {
    64                      "unquoted_string": {
    65                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:0:7-1:1:8",
    66                        "value": [
    67                          {
    68                            "string": "x",
    69                            "raw_string": "x"
    70                          }
    71                        ]
    72                      }
    73                    }
    74                  ]
    75                },
    76                "src_arrow": "",
    77                "dst": {
    78                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:5:12-1:6:13",
    79                  "path": [
    80                    {
    81                      "unquoted_string": {
    82                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:5:12-1:6:13",
    83                        "value": [
    84                          {
    85                            "string": "c",
    86                            "raw_string": "c"
    87                          }
    88                        ]
    89                      }
    90                    }
    91                  ]
    92                },
    93                "dst_arrow": ">"
    94              }
    95            ],
    96            "primary": {},
    97            "value": {}
    98          }
    99        },
   100        {
   101          "map_key": {
   102            "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,2:0:14-2:1:15",
   103            "key": {
   104              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,2:0:14-2:1:15",
   105              "path": [
   106                {
   107                  "unquoted_string": {
   108                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,2:0:14-2:1:15",
   109                    "value": [
   110                      {
   111                        "string": "x",
   112                        "raw_string": "x"
   113                      }
   114                    ]
   115                  }
   116                }
   117              ]
   118            },
   119            "primary": {},
   120            "value": {}
   121          }
   122        }
   123      ]
   124    },
   125    "root": {
   126      "id": "",
   127      "id_val": "",
   128      "attributes": {
   129        "label": {
   130          "value": ""
   131        },
   132        "labelDimensions": {
   133          "width": 0,
   134          "height": 0
   135        },
   136        "style": {},
   137        "near_key": null,
   138        "shape": {
   139          "value": ""
   140        },
   141        "direction": {
   142          "value": ""
   143        },
   144        "constraint": null
   145      },
   146      "zIndex": 0
   147    },
   148    "edges": [
   149      {
   150        "index": 0,
   151        "isCurve": false,
   152        "src_arrow": false,
   153        "dst_arrow": true,
   154        "references": [
   155          {
   156            "map_key_edge_index": 0
   157          }
   158        ],
   159        "attributes": {
   160          "label": {
   161            "value": ""
   162          },
   163          "labelDimensions": {
   164            "width": 0,
   165            "height": 0
   166          },
   167          "style": {},
   168          "near_key": null,
   169          "shape": {
   170            "value": ""
   171          },
   172          "direction": {
   173            "value": ""
   174          },
   175          "constraint": null
   176        },
   177        "zIndex": 0
   178      },
   179      {
   180        "index": 0,
   181        "isCurve": false,
   182        "src_arrow": false,
   183        "dst_arrow": true,
   184        "references": [
   185          {
   186            "map_key_edge_index": 0
   187          }
   188        ],
   189        "attributes": {
   190          "label": {
   191            "value": ""
   192          },
   193          "labelDimensions": {
   194            "width": 0,
   195            "height": 0
   196          },
   197          "style": {},
   198          "near_key": null,
   199          "shape": {
   200            "value": ""
   201          },
   202          "direction": {
   203            "value": ""
   204          },
   205          "constraint": null
   206        },
   207        "zIndex": 0
   208      }
   209    ],
   210    "objects": [
   211      {
   212        "id": "a",
   213        "id_val": "a",
   214        "references": [
   215          {
   216            "key": {
   217              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:0:0-0:1:1",
   218              "path": [
   219                {
   220                  "unquoted_string": {
   221                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:0:0-0:1:1",
   222                    "value": [
   223                      {
   224                        "string": "a",
   225                        "raw_string": "a"
   226                      }
   227                    ]
   228                  }
   229                }
   230              ]
   231            },
   232            "key_path_index": 0,
   233            "map_key_edge_index": 0
   234          }
   235        ],
   236        "attributes": {
   237          "label": {
   238            "value": "a"
   239          },
   240          "labelDimensions": {
   241            "width": 0,
   242            "height": 0
   243          },
   244          "style": {},
   245          "near_key": null,
   246          "shape": {
   247            "value": "rectangle"
   248          },
   249          "direction": {
   250            "value": ""
   251          },
   252          "constraint": null
   253        },
   254        "zIndex": 0
   255      },
   256      {
   257        "id": "b",
   258        "id_val": "b",
   259        "references": [
   260          {
   261            "key": {
   262              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:5:5-0:6:6",
   263              "path": [
   264                {
   265                  "unquoted_string": {
   266                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,0:5:5-0:6:6",
   267                    "value": [
   268                      {
   269                        "string": "b",
   270                        "raw_string": "b"
   271                      }
   272                    ]
   273                  }
   274                }
   275              ]
   276            },
   277            "key_path_index": 0,
   278            "map_key_edge_index": 0
   279          }
   280        ],
   281        "attributes": {
   282          "label": {
   283            "value": "b"
   284          },
   285          "labelDimensions": {
   286            "width": 0,
   287            "height": 0
   288          },
   289          "style": {},
   290          "near_key": null,
   291          "shape": {
   292            "value": "rectangle"
   293          },
   294          "direction": {
   295            "value": ""
   296          },
   297          "constraint": null
   298        },
   299        "zIndex": 0
   300      },
   301      {
   302        "id": "x",
   303        "id_val": "x",
   304        "references": [
   305          {
   306            "key": {
   307              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:0:7-1:1:8",
   308              "path": [
   309                {
   310                  "unquoted_string": {
   311                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:0:7-1:1:8",
   312                    "value": [
   313                      {
   314                        "string": "x",
   315                        "raw_string": "x"
   316                      }
   317                    ]
   318                  }
   319                }
   320              ]
   321            },
   322            "key_path_index": 0,
   323            "map_key_edge_index": 0
   324          },
   325          {
   326            "key": {
   327              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,2:0:14-2:1:15",
   328              "path": [
   329                {
   330                  "unquoted_string": {
   331                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,2:0:14-2:1:15",
   332                    "value": [
   333                      {
   334                        "string": "x",
   335                        "raw_string": "x"
   336                      }
   337                    ]
   338                  }
   339                }
   340              ]
   341            },
   342            "key_path_index": 0,
   343            "map_key_edge_index": -1
   344          }
   345        ],
   346        "attributes": {
   347          "label": {
   348            "value": "x"
   349          },
   350          "labelDimensions": {
   351            "width": 0,
   352            "height": 0
   353          },
   354          "style": {},
   355          "near_key": null,
   356          "shape": {
   357            "value": "rectangle"
   358          },
   359          "direction": {
   360            "value": ""
   361          },
   362          "constraint": null
   363        },
   364        "zIndex": 0
   365      },
   366      {
   367        "id": "c",
   368        "id_val": "c",
   369        "references": [
   370          {
   371            "key": {
   372              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:5:12-1:6:13",
   373              "path": [
   374                {
   375                  "unquoted_string": {
   376                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_src.d2,1:5:12-1:6:13",
   377                    "value": [
   378                      {
   379                        "string": "c",
   380                        "raw_string": "c"
   381                      }
   382                    ]
   383                  }
   384                }
   385              ]
   386            },
   387            "key_path_index": 0,
   388            "map_key_edge_index": 0
   389          }
   390        ],
   391        "attributes": {
   392          "label": {
   393            "value": "c"
   394          },
   395          "labelDimensions": {
   396            "width": 0,
   397            "height": 0
   398          },
   399          "style": {},
   400          "near_key": null,
   401          "shape": {
   402            "value": "rectangle"
   403          },
   404          "direction": {
   405            "value": ""
   406          },
   407          "constraint": null
   408        },
   409        "zIndex": 0
   410      }
   411    ]
   412  },
   413  "err": "<nil>"
   414}

View as plain text