...

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

View as plain text