...

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

View as plain text