...

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

View as plain text