...

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

View as plain text