...

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

View as plain text