...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/edge_across_containers.exp.json

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

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

View as plain text