...

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

View as plain text