...

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

View as plain text