...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.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_both.d2,0:0:0-4:0:23",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,0:0:0-0:6:6",
    11            "edges": [
    12              {
    13                "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,0:0:0-0:6:6",
    14                "src": {
    15                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,0:0:0-0:1:1",
    16                  "path": [
    17                    {
    18                      "unquoted_string": {
    19                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.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_both.d2,0:5:5-0:6:6",
    33                  "path": [
    34                    {
    35                      "unquoted_string": {
    36                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.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_both.d2,1:0:7-1:6:13",
    57            "edges": [
    58              {
    59                "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:0:7-1:6:13",
    60                "src": {
    61                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:0:7-1:1:8",
    62                  "path": [
    63                    {
    64                      "unquoted_string": {
    65                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:0:7-1:1:8",
    66                        "value": [
    67                          {
    68                            "string": "c",
    69                            "raw_string": "c"
    70                          }
    71                        ]
    72                      }
    73                    }
    74                  ]
    75                },
    76                "src_arrow": "",
    77                "dst": {
    78                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:5:12-1:6:13",
    79                  "path": [
    80                    {
    81                      "unquoted_string": {
    82                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:5:12-1:6:13",
    83                        "value": [
    84                          {
    85                            "string": "d",
    86                            "raw_string": "d"
    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_both.d2,2:0:14-2:6:20",
   103            "edges": [
   104              {
   105                "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:0:14-2:6:20",
   106                "src": {
   107                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:0:14-2:1:15",
   108                  "path": [
   109                    {
   110                      "unquoted_string": {
   111                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:0:14-2:1:15",
   112                        "value": [
   113                          {
   114                            "string": "x",
   115                            "raw_string": "x"
   116                          }
   117                        ]
   118                      }
   119                    }
   120                  ]
   121                },
   122                "src_arrow": "",
   123                "dst": {
   124                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:5:19-2:6:20",
   125                  "path": [
   126                    {
   127                      "unquoted_string": {
   128                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:5:19-2:6:20",
   129                        "value": [
   130                          {
   131                            "string": "x",
   132                            "raw_string": "x"
   133                          }
   134                        ]
   135                      }
   136                    }
   137                  ]
   138                },
   139                "dst_arrow": ">"
   140              }
   141            ],
   142            "primary": {},
   143            "value": {}
   144          }
   145        },
   146        {
   147          "map_key": {
   148            "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,3:0:21-3:1:22",
   149            "key": {
   150              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,3:0:21-3:1:22",
   151              "path": [
   152                {
   153                  "unquoted_string": {
   154                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,3:0:21-3:1:22",
   155                    "value": [
   156                      {
   157                        "string": "x",
   158                        "raw_string": "x"
   159                      }
   160                    ]
   161                  }
   162                }
   163              ]
   164            },
   165            "primary": {},
   166            "value": {}
   167          }
   168        }
   169      ]
   170    },
   171    "root": {
   172      "id": "",
   173      "id_val": "",
   174      "attributes": {
   175        "label": {
   176          "value": ""
   177        },
   178        "labelDimensions": {
   179          "width": 0,
   180          "height": 0
   181        },
   182        "style": {},
   183        "near_key": null,
   184        "shape": {
   185          "value": ""
   186        },
   187        "direction": {
   188          "value": ""
   189        },
   190        "constraint": null
   191      },
   192      "zIndex": 0
   193    },
   194    "edges": [
   195      {
   196        "index": 0,
   197        "isCurve": false,
   198        "src_arrow": false,
   199        "dst_arrow": true,
   200        "references": [
   201          {
   202            "map_key_edge_index": 0
   203          }
   204        ],
   205        "attributes": {
   206          "label": {
   207            "value": ""
   208          },
   209          "labelDimensions": {
   210            "width": 0,
   211            "height": 0
   212          },
   213          "style": {},
   214          "near_key": null,
   215          "shape": {
   216            "value": ""
   217          },
   218          "direction": {
   219            "value": ""
   220          },
   221          "constraint": null
   222        },
   223        "zIndex": 0
   224      },
   225      {
   226        "index": 0,
   227        "isCurve": false,
   228        "src_arrow": false,
   229        "dst_arrow": true,
   230        "references": [
   231          {
   232            "map_key_edge_index": 0
   233          }
   234        ],
   235        "attributes": {
   236          "label": {
   237            "value": ""
   238          },
   239          "labelDimensions": {
   240            "width": 0,
   241            "height": 0
   242          },
   243          "style": {},
   244          "near_key": null,
   245          "shape": {
   246            "value": ""
   247          },
   248          "direction": {
   249            "value": ""
   250          },
   251          "constraint": null
   252        },
   253        "zIndex": 0
   254      },
   255      {
   256        "index": 0,
   257        "isCurve": false,
   258        "src_arrow": false,
   259        "dst_arrow": true,
   260        "references": [
   261          {
   262            "map_key_edge_index": 0
   263          }
   264        ],
   265        "attributes": {
   266          "label": {
   267            "value": ""
   268          },
   269          "labelDimensions": {
   270            "width": 0,
   271            "height": 0
   272          },
   273          "style": {},
   274          "near_key": null,
   275          "shape": {
   276            "value": ""
   277          },
   278          "direction": {
   279            "value": ""
   280          },
   281          "constraint": null
   282        },
   283        "zIndex": 0
   284      }
   285    ],
   286    "objects": [
   287      {
   288        "id": "a",
   289        "id_val": "a",
   290        "references": [
   291          {
   292            "key": {
   293              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,0:0:0-0:1:1",
   294              "path": [
   295                {
   296                  "unquoted_string": {
   297                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,0:0:0-0:1:1",
   298                    "value": [
   299                      {
   300                        "string": "a",
   301                        "raw_string": "a"
   302                      }
   303                    ]
   304                  }
   305                }
   306              ]
   307            },
   308            "key_path_index": 0,
   309            "map_key_edge_index": 0
   310          }
   311        ],
   312        "attributes": {
   313          "label": {
   314            "value": "a"
   315          },
   316          "labelDimensions": {
   317            "width": 0,
   318            "height": 0
   319          },
   320          "style": {},
   321          "near_key": null,
   322          "shape": {
   323            "value": "rectangle"
   324          },
   325          "direction": {
   326            "value": ""
   327          },
   328          "constraint": null
   329        },
   330        "zIndex": 0
   331      },
   332      {
   333        "id": "b",
   334        "id_val": "b",
   335        "references": [
   336          {
   337            "key": {
   338              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,0:5:5-0:6:6",
   339              "path": [
   340                {
   341                  "unquoted_string": {
   342                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,0:5:5-0:6:6",
   343                    "value": [
   344                      {
   345                        "string": "b",
   346                        "raw_string": "b"
   347                      }
   348                    ]
   349                  }
   350                }
   351              ]
   352            },
   353            "key_path_index": 0,
   354            "map_key_edge_index": 0
   355          }
   356        ],
   357        "attributes": {
   358          "label": {
   359            "value": "b"
   360          },
   361          "labelDimensions": {
   362            "width": 0,
   363            "height": 0
   364          },
   365          "style": {},
   366          "near_key": null,
   367          "shape": {
   368            "value": "rectangle"
   369          },
   370          "direction": {
   371            "value": ""
   372          },
   373          "constraint": null
   374        },
   375        "zIndex": 0
   376      },
   377      {
   378        "id": "c",
   379        "id_val": "c",
   380        "references": [
   381          {
   382            "key": {
   383              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:0:7-1:1:8",
   384              "path": [
   385                {
   386                  "unquoted_string": {
   387                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:0:7-1:1:8",
   388                    "value": [
   389                      {
   390                        "string": "c",
   391                        "raw_string": "c"
   392                      }
   393                    ]
   394                  }
   395                }
   396              ]
   397            },
   398            "key_path_index": 0,
   399            "map_key_edge_index": 0
   400          }
   401        ],
   402        "attributes": {
   403          "label": {
   404            "value": "c"
   405          },
   406          "labelDimensions": {
   407            "width": 0,
   408            "height": 0
   409          },
   410          "style": {},
   411          "near_key": null,
   412          "shape": {
   413            "value": "rectangle"
   414          },
   415          "direction": {
   416            "value": ""
   417          },
   418          "constraint": null
   419        },
   420        "zIndex": 0
   421      },
   422      {
   423        "id": "d",
   424        "id_val": "d",
   425        "references": [
   426          {
   427            "key": {
   428              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:5:12-1:6:13",
   429              "path": [
   430                {
   431                  "unquoted_string": {
   432                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,1:5:12-1:6:13",
   433                    "value": [
   434                      {
   435                        "string": "d",
   436                        "raw_string": "d"
   437                      }
   438                    ]
   439                  }
   440                }
   441              ]
   442            },
   443            "key_path_index": 0,
   444            "map_key_edge_index": 0
   445          }
   446        ],
   447        "attributes": {
   448          "label": {
   449            "value": "d"
   450          },
   451          "labelDimensions": {
   452            "width": 0,
   453            "height": 0
   454          },
   455          "style": {},
   456          "near_key": null,
   457          "shape": {
   458            "value": "rectangle"
   459          },
   460          "direction": {
   461            "value": ""
   462          },
   463          "constraint": null
   464        },
   465        "zIndex": 0
   466      },
   467      {
   468        "id": "x",
   469        "id_val": "x",
   470        "references": [
   471          {
   472            "key": {
   473              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:0:14-2:1:15",
   474              "path": [
   475                {
   476                  "unquoted_string": {
   477                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:0:14-2:1:15",
   478                    "value": [
   479                      {
   480                        "string": "x",
   481                        "raw_string": "x"
   482                      }
   483                    ]
   484                  }
   485                }
   486              ]
   487            },
   488            "key_path_index": 0,
   489            "map_key_edge_index": 0
   490          },
   491          {
   492            "key": {
   493              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:5:19-2:6:20",
   494              "path": [
   495                {
   496                  "unquoted_string": {
   497                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,2:5:19-2:6:20",
   498                    "value": [
   499                      {
   500                        "string": "x",
   501                        "raw_string": "x"
   502                      }
   503                    ]
   504                  }
   505                }
   506              ]
   507            },
   508            "key_path_index": 0,
   509            "map_key_edge_index": 0
   510          },
   511          {
   512            "key": {
   513              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,3:0:21-3:1:22",
   514              "path": [
   515                {
   516                  "unquoted_string": {
   517                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_both.d2,3:0:21-3:1:22",
   518                    "value": [
   519                      {
   520                        "string": "x",
   521                        "raw_string": "x"
   522                      }
   523                    ]
   524                  }
   525                }
   526              ]
   527            },
   528            "key_path_index": 0,
   529            "map_key_edge_index": -1
   530          }
   531        ],
   532        "attributes": {
   533          "label": {
   534            "value": "x"
   535          },
   536          "labelDimensions": {
   537            "width": 0,
   538            "height": 0
   539          },
   540          "style": {},
   541          "near_key": null,
   542          "shape": {
   543            "value": "rectangle"
   544          },
   545          "direction": {
   546            "value": ""
   547          },
   548          "constraint": null
   549        },
   550        "zIndex": 0
   551      }
   552    ]
   553  },
   554  "err": "<nil>"
   555}

View as plain text