...

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

View as plain text