...

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

View as plain text