...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/underscore_edge_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_edge_split.d2,0:0:0-6:0:34",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,0:0:0-4:1:31",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_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_edge_split.d2,0:3:3-4:1:31",
    31                "nodes": [
    32                  {
    33                    "map_key": {
    34                      "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,1:2:7-3:3:29",
    35                      "key": {
    36                        "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,1:2:7-1:3:8",
    37                        "path": [
    38                          {
    39                            "unquoted_string": {
    40                              "range": "d2/testdata/d2oracle/TestMove/underscore_edge_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_edge_split.d2,1:5:10-3:3:29",
    55                          "nodes": [
    56                            {
    57                              "map_key": {
    58                                "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:4:16-2:13:25",
    59                                "edges": [
    60                                  {
    61                                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:4:16-2:13:25",
    62                                    "src": {
    63                                      "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:4:16-2:7:19",
    64                                      "path": [
    65                                        {
    66                                          "unquoted_string": {
    67                                            "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:4:16-2:5:17",
    68                                            "value": [
    69                                              {
    70                                                "string": "_",
    71                                                "raw_string": "_"
    72                                              }
    73                                            ]
    74                                          }
    75                                        },
    76                                        {
    77                                          "unquoted_string": {
    78                                            "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:6:18-2:7:19",
    79                                            "value": [
    80                                              {
    81                                                "string": "f",
    82                                                "raw_string": "f"
    83                                              }
    84                                            ]
    85                                          }
    86                                        }
    87                                      ]
    88                                    },
    89                                    "src_arrow": "",
    90                                    "dst": {
    91                                      "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:11:23-2:13:25",
    92                                      "path": [
    93                                        {
    94                                          "unquoted_string": {
    95                                            "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:11:23-2:13:25",
    96                                            "value": [
    97                                              {
    98                                                "string": "yo",
    99                                                "raw_string": "yo"
   100                                              }
   101                                            ]
   102                                          }
   103                                        }
   104                                      ]
   105                                    },
   106                                    "dst_arrow": ">"
   107                                  }
   108                                ],
   109                                "primary": {},
   110                                "value": {}
   111                              }
   112                            }
   113                          ]
   114                        }
   115                      }
   116                    }
   117                  }
   118                ]
   119              }
   120            }
   121          }
   122        },
   123        {
   124          "map_key": {
   125            "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,5:0:32-5:1:33",
   126            "key": {
   127              "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,5:0:32-5:1:33",
   128              "path": [
   129                {
   130                  "unquoted_string": {
   131                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,5:0:32-5:1:33",
   132                    "value": [
   133                      {
   134                        "string": "c",
   135                        "raw_string": "c"
   136                      }
   137                    ]
   138                  }
   139                }
   140              ]
   141            },
   142            "primary": {},
   143            "value": {}
   144          }
   145        }
   146      ]
   147    },
   148    "root": {
   149      "id": "",
   150      "id_val": "",
   151      "attributes": {
   152        "label": {
   153          "value": ""
   154        },
   155        "labelDimensions": {
   156          "width": 0,
   157          "height": 0
   158        },
   159        "style": {},
   160        "near_key": null,
   161        "shape": {
   162          "value": ""
   163        },
   164        "direction": {
   165          "value": ""
   166        },
   167        "constraint": null
   168      },
   169      "zIndex": 0
   170    },
   171    "edges": [
   172      {
   173        "index": 0,
   174        "isCurve": false,
   175        "src_arrow": false,
   176        "dst_arrow": true,
   177        "references": [
   178          {
   179            "map_key_edge_index": 0
   180          }
   181        ],
   182        "attributes": {
   183          "label": {
   184            "value": ""
   185          },
   186          "labelDimensions": {
   187            "width": 0,
   188            "height": 0
   189          },
   190          "style": {},
   191          "near_key": null,
   192          "shape": {
   193            "value": ""
   194          },
   195          "direction": {
   196            "value": ""
   197          },
   198          "constraint": null
   199        },
   200        "zIndex": 0
   201      }
   202    ],
   203    "objects": [
   204      {
   205        "id": "a",
   206        "id_val": "a",
   207        "references": [
   208          {
   209            "key": {
   210              "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,0:0:0-0:1:1",
   211              "path": [
   212                {
   213                  "unquoted_string": {
   214                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,0:0:0-0:1:1",
   215                    "value": [
   216                      {
   217                        "string": "a",
   218                        "raw_string": "a"
   219                      }
   220                    ]
   221                  }
   222                }
   223              ]
   224            },
   225            "key_path_index": 0,
   226            "map_key_edge_index": -1
   227          }
   228        ],
   229        "attributes": {
   230          "label": {
   231            "value": "a"
   232          },
   233          "labelDimensions": {
   234            "width": 0,
   235            "height": 0
   236          },
   237          "style": {},
   238          "near_key": null,
   239          "shape": {
   240            "value": "rectangle"
   241          },
   242          "direction": {
   243            "value": ""
   244          },
   245          "constraint": null
   246        },
   247        "zIndex": 0
   248      },
   249      {
   250        "id": "b",
   251        "id_val": "b",
   252        "references": [
   253          {
   254            "key": {
   255              "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,1:2:7-1:3:8",
   256              "path": [
   257                {
   258                  "unquoted_string": {
   259                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,1:2:7-1:3:8",
   260                    "value": [
   261                      {
   262                        "string": "b",
   263                        "raw_string": "b"
   264                      }
   265                    ]
   266                  }
   267                }
   268              ]
   269            },
   270            "key_path_index": 0,
   271            "map_key_edge_index": -1
   272          }
   273        ],
   274        "attributes": {
   275          "label": {
   276            "value": "b"
   277          },
   278          "labelDimensions": {
   279            "width": 0,
   280            "height": 0
   281          },
   282          "style": {},
   283          "near_key": null,
   284          "shape": {
   285            "value": "rectangle"
   286          },
   287          "direction": {
   288            "value": ""
   289          },
   290          "constraint": null
   291        },
   292        "zIndex": 0
   293      },
   294      {
   295        "id": "f",
   296        "id_val": "f",
   297        "references": [
   298          {
   299            "key": {
   300              "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:4:16-2:7:19",
   301              "path": [
   302                {
   303                  "unquoted_string": {
   304                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:4:16-2:5:17",
   305                    "value": [
   306                      {
   307                        "string": "_",
   308                        "raw_string": "_"
   309                      }
   310                    ]
   311                  }
   312                },
   313                {
   314                  "unquoted_string": {
   315                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:6:18-2:7:19",
   316                    "value": [
   317                      {
   318                        "string": "f",
   319                        "raw_string": "f"
   320                      }
   321                    ]
   322                  }
   323                }
   324              ]
   325            },
   326            "key_path_index": 1,
   327            "map_key_edge_index": 0
   328          }
   329        ],
   330        "attributes": {
   331          "label": {
   332            "value": "f"
   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        "id": "yo",
   352        "id_val": "yo",
   353        "references": [
   354          {
   355            "key": {
   356              "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:11:23-2:13:25",
   357              "path": [
   358                {
   359                  "unquoted_string": {
   360                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,2:11:23-2:13:25",
   361                    "value": [
   362                      {
   363                        "string": "yo",
   364                        "raw_string": "yo"
   365                      }
   366                    ]
   367                  }
   368                }
   369              ]
   370            },
   371            "key_path_index": 0,
   372            "map_key_edge_index": 0
   373          }
   374        ],
   375        "attributes": {
   376          "label": {
   377            "value": "yo"
   378          },
   379          "labelDimensions": {
   380            "width": 0,
   381            "height": 0
   382          },
   383          "style": {},
   384          "near_key": null,
   385          "shape": {
   386            "value": "rectangle"
   387          },
   388          "direction": {
   389            "value": ""
   390          },
   391          "constraint": null
   392        },
   393        "zIndex": 0
   394      },
   395      {
   396        "id": "c",
   397        "id_val": "c",
   398        "references": [
   399          {
   400            "key": {
   401              "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,5:0:32-5:1:33",
   402              "path": [
   403                {
   404                  "unquoted_string": {
   405                    "range": "d2/testdata/d2oracle/TestMove/underscore_edge_split.d2,5:0:32-5:1:33",
   406                    "value": [
   407                      {
   408                        "string": "c",
   409                        "raw_string": "c"
   410                      }
   411                    ]
   412                  }
   413                }
   414              ]
   415            },
   416            "key_path_index": 0,
   417            "map_key_edge_index": -1
   418          }
   419        ],
   420        "attributes": {
   421          "label": {
   422            "value": "c"
   423          },
   424          "labelDimensions": {
   425            "width": 0,
   426            "height": 0
   427          },
   428          "style": {},
   429          "near_key": null,
   430          "shape": {
   431            "value": "rectangle"
   432          },
   433          "direction": {
   434            "value": ""
   435          },
   436          "constraint": null
   437        },
   438        "zIndex": 0
   439      }
   440    ]
   441  },
   442  "err": "<nil>"
   443}

View as plain text