...

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

View as plain text