...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestDelete/scenarios-basic.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2oracle/TestDelete

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

View as plain text