...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.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_first.d2,0:0:0-3:0:21",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,0:0:0-0:1:1",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.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          }
    30        },
    31        {
    32          "map_key": {
    33            "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:0:2-1:16:18",
    34            "edges": [
    35              {
    36                "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:0:2-1:6:8",
    37                "src": {
    38                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:0:2-1:1:3",
    39                  "path": [
    40                    {
    41                      "unquoted_string": {
    42                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:0:2-1:1:3",
    43                        "value": [
    44                          {
    45                            "string": "x",
    46                            "raw_string": "x"
    47                          }
    48                        ]
    49                      }
    50                    }
    51                  ]
    52                },
    53                "src_arrow": "",
    54                "dst": {
    55                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:6:8",
    56                  "path": [
    57                    {
    58                      "unquoted_string": {
    59                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:6:8",
    60                        "value": [
    61                          {
    62                            "string": "b",
    63                            "raw_string": "b"
    64                          }
    65                        ]
    66                      }
    67                    }
    68                  ]
    69                },
    70                "dst_arrow": ">"
    71              },
    72              {
    73                "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:11:13",
    74                "src": {
    75                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:6:8",
    76                  "path": [
    77                    {
    78                      "unquoted_string": {
    79                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:6:8",
    80                        "value": [
    81                          {
    82                            "string": "b",
    83                            "raw_string": "b"
    84                          }
    85                        ]
    86                      }
    87                    }
    88                  ]
    89                },
    90                "src_arrow": "",
    91                "dst": {
    92                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:11:13",
    93                  "path": [
    94                    {
    95                      "unquoted_string": {
    96                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:11:13",
    97                        "value": [
    98                          {
    99                            "string": "c",
   100                            "raw_string": "c"
   101                          }
   102                        ]
   103                      }
   104                    }
   105                  ]
   106                },
   107                "dst_arrow": ">"
   108              },
   109              {
   110                "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:16:18",
   111                "src": {
   112                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:11:13",
   113                  "path": [
   114                    {
   115                      "unquoted_string": {
   116                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:11:13",
   117                        "value": [
   118                          {
   119                            "string": "c",
   120                            "raw_string": "c"
   121                          }
   122                        ]
   123                      }
   124                    }
   125                  ]
   126                },
   127                "src_arrow": "",
   128                "dst": {
   129                  "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:15:17-1:16:18",
   130                  "path": [
   131                    {
   132                      "unquoted_string": {
   133                        "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:15:17-1:16:18",
   134                        "value": [
   135                          {
   136                            "string": "d",
   137                            "raw_string": "d"
   138                          }
   139                        ]
   140                      }
   141                    }
   142                  ]
   143                },
   144                "dst_arrow": ">"
   145              }
   146            ],
   147            "primary": {},
   148            "value": {}
   149          }
   150        },
   151        {
   152          "map_key": {
   153            "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,2:0:19-2:1:20",
   154            "key": {
   155              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,2:0:19-2:1:20",
   156              "path": [
   157                {
   158                  "unquoted_string": {
   159                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.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_first.d2,0:0:0-0:1:1",
   299              "path": [
   300                {
   301                  "unquoted_string": {
   302                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.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": -1
   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": "x",
   339        "id_val": "x",
   340        "references": [
   341          {
   342            "key": {
   343              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:0:2-1:1:3",
   344              "path": [
   345                {
   346                  "unquoted_string": {
   347                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:0:2-1:1:3",
   348                    "value": [
   349                      {
   350                        "string": "x",
   351                        "raw_string": "x"
   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_first.d2,2:0:19-2:1:20",
   364              "path": [
   365                {
   366                  "unquoted_string": {
   367                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,2:0:19-2:1:20",
   368                    "value": [
   369                      {
   370                        "string": "x",
   371                        "raw_string": "x"
   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": "x"
   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": "b",
   404        "id_val": "b",
   405        "references": [
   406          {
   407            "key": {
   408              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:6:8",
   409              "path": [
   410                {
   411                  "unquoted_string": {
   412                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:6:8",
   413                    "value": [
   414                      {
   415                        "string": "b",
   416                        "raw_string": "b"
   417                      }
   418                    ]
   419                  }
   420                }
   421              ]
   422            },
   423            "key_path_index": 0,
   424            "map_key_edge_index": 0
   425          },
   426          {
   427            "key": {
   428              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:6:8",
   429              "path": [
   430                {
   431                  "unquoted_string": {
   432                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:5:7-1:6:8",
   433                    "value": [
   434                      {
   435                        "string": "b",
   436                        "raw_string": "b"
   437                      }
   438                    ]
   439                  }
   440                }
   441              ]
   442            },
   443            "key_path_index": 0,
   444            "map_key_edge_index": 1
   445          }
   446        ],
   447        "attributes": {
   448          "label": {
   449            "value": "b"
   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": "c",
   469        "id_val": "c",
   470        "references": [
   471          {
   472            "key": {
   473              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:11:13",
   474              "path": [
   475                {
   476                  "unquoted_string": {
   477                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:11:13",
   478                    "value": [
   479                      {
   480                        "string": "c",
   481                        "raw_string": "c"
   482                      }
   483                    ]
   484                  }
   485                }
   486              ]
   487            },
   488            "key_path_index": 0,
   489            "map_key_edge_index": 1
   490          },
   491          {
   492            "key": {
   493              "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:11:13",
   494              "path": [
   495                {
   496                  "unquoted_string": {
   497                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:10:12-1:11:13",
   498                    "value": [
   499                      {
   500                        "string": "c",
   501                        "raw_string": "c"
   502                      }
   503                    ]
   504                  }
   505                }
   506              ]
   507            },
   508            "key_path_index": 0,
   509            "map_key_edge_index": 2
   510          }
   511        ],
   512        "attributes": {
   513          "label": {
   514            "value": "c"
   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_first.d2,1:15:17-1:16:18",
   539              "path": [
   540                {
   541                  "unquoted_string": {
   542                    "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain_first.d2,1:15:17-1:16: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": 2
   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