...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/include_descendants_map_1.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_map_1.d2,0:0:0-5:0:24",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,0:0:0-4:1:23",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.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_map_1.d2,0:3:3-4:1:23",
    31                "nodes": [
    32                  {
    33                    "map_key": {
    34                      "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,1:2:7-3:3:21",
    35                      "key": {
    36                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,1:2:7-1:3:8",
    37                        "path": [
    38                          {
    39                            "unquoted_string": {
    40                              "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,1:2:7-1:3:8",
    41                              "value": [
    42                                {
    43                                  "string": "x",
    44                                  "raw_string": "x"
    45                                }
    46                              ]
    47                            }
    48                          }
    49                        ]
    50                      },
    51                      "primary": {},
    52                      "value": {
    53                        "map": {
    54                          "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,1:5:10-3:3:21",
    55                          "nodes": [
    56                            {
    57                              "map_key": {
    58                                "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,2:4:16-2:5:17",
    59                                "key": {
    60                                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,2:4:16-2:5:17",
    61                                  "path": [
    62                                    {
    63                                      "unquoted_string": {
    64                                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,2:4:16-2:5:17",
    65                                        "value": [
    66                                          {
    67                                            "string": "y",
    68                                            "raw_string": "y"
    69                                          }
    70                                        ]
    71                                      }
    72                                    }
    73                                  ]
    74                                },
    75                                "primary": {},
    76                                "value": {}
    77                              }
    78                            }
    79                          ]
    80                        }
    81                      }
    82                    }
    83                  }
    84                ]
    85              }
    86            }
    87          }
    88        }
    89      ]
    90    },
    91    "root": {
    92      "id": "",
    93      "id_val": "",
    94      "attributes": {
    95        "label": {
    96          "value": ""
    97        },
    98        "labelDimensions": {
    99          "width": 0,
   100          "height": 0
   101        },
   102        "style": {},
   103        "near_key": null,
   104        "shape": {
   105          "value": ""
   106        },
   107        "direction": {
   108          "value": ""
   109        },
   110        "constraint": null
   111      },
   112      "zIndex": 0
   113    },
   114    "edges": null,
   115    "objects": [
   116      {
   117        "id": "z",
   118        "id_val": "z",
   119        "references": [
   120          {
   121            "key": {
   122              "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,0:0:0-0:1:1",
   123              "path": [
   124                {
   125                  "unquoted_string": {
   126                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,0:0:0-0:1:1",
   127                    "value": [
   128                      {
   129                        "string": "z",
   130                        "raw_string": "z"
   131                      }
   132                    ]
   133                  }
   134                }
   135              ]
   136            },
   137            "key_path_index": 0,
   138            "map_key_edge_index": -1
   139          }
   140        ],
   141        "attributes": {
   142          "label": {
   143            "value": "z"
   144          },
   145          "labelDimensions": {
   146            "width": 0,
   147            "height": 0
   148          },
   149          "style": {},
   150          "near_key": null,
   151          "shape": {
   152            "value": "rectangle"
   153          },
   154          "direction": {
   155            "value": ""
   156          },
   157          "constraint": null
   158        },
   159        "zIndex": 0
   160      },
   161      {
   162        "id": "x",
   163        "id_val": "x",
   164        "references": [
   165          {
   166            "key": {
   167              "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,1:2:7-1:3:8",
   168              "path": [
   169                {
   170                  "unquoted_string": {
   171                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,1:2:7-1:3:8",
   172                    "value": [
   173                      {
   174                        "string": "x",
   175                        "raw_string": "x"
   176                      }
   177                    ]
   178                  }
   179                }
   180              ]
   181            },
   182            "key_path_index": 0,
   183            "map_key_edge_index": -1
   184          }
   185        ],
   186        "attributes": {
   187          "label": {
   188            "value": "x"
   189          },
   190          "labelDimensions": {
   191            "width": 0,
   192            "height": 0
   193          },
   194          "style": {},
   195          "near_key": null,
   196          "shape": {
   197            "value": "rectangle"
   198          },
   199          "direction": {
   200            "value": ""
   201          },
   202          "constraint": null
   203        },
   204        "zIndex": 0
   205      },
   206      {
   207        "id": "y",
   208        "id_val": "y",
   209        "references": [
   210          {
   211            "key": {
   212              "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,2:4:16-2:5:17",
   213              "path": [
   214                {
   215                  "unquoted_string": {
   216                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_map_1.d2,2:4:16-2:5:17",
   217                    "value": [
   218                      {
   219                        "string": "y",
   220                        "raw_string": "y"
   221                      }
   222                    ]
   223                  }
   224                }
   225              ]
   226            },
   227            "key_path_index": 0,
   228            "map_key_edge_index": -1
   229          }
   230        ],
   231        "attributes": {
   232          "label": {
   233            "value": "y"
   234          },
   235          "labelDimensions": {
   236            "width": 0,
   237            "height": 0
   238          },
   239          "style": {},
   240          "near_key": null,
   241          "shape": {
   242            "value": "rectangle"
   243          },
   244          "direction": {
   245            "value": ""
   246          },
   247          "constraint": null
   248        },
   249        "zIndex": 0
   250      }
   251    ]
   252  },
   253  "err": "<nil>"
   254}

View as plain text