...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/include_descendants_underscore.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/include_descendants_underscore.d2,0:0:0-7:0:85",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:0:0-0:24:24",
    11            "edges": [
    12              {
    13                "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:0:0-0:24:24",
    14                "src": {
    15                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:0:0-0:11:11",
    16                  "path": [
    17                    {
    18                      "unquoted_string": {
    19                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:0:0-0:6:6",
    20                        "value": [
    21                          {
    22                            "string": "github",
    23                            "raw_string": "github"
    24                          }
    25                        ]
    26                      }
    27                    },
    28                    {
    29                      "unquoted_string": {
    30                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:7:7-0:11:11",
    31                        "value": [
    32                          {
    33                            "string": "code",
    34                            "raw_string": "code"
    35                          }
    36                        ]
    37                      }
    38                    }
    39                  ]
    40                },
    41                "src_arrow": "",
    42                "dst": {
    43                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:15:15-0:24:24",
    44                  "path": [
    45                    {
    46                      "unquoted_string": {
    47                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:15:15-0:20:20",
    48                        "value": [
    49                          {
    50                            "string": "local",
    51                            "raw_string": "local"
    52                          }
    53                        ]
    54                      }
    55                    },
    56                    {
    57                      "unquoted_string": {
    58                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:21:21-0:24:24",
    59                        "value": [
    60                          {
    61                            "string": "dev",
    62                            "raw_string": "dev"
    63                          }
    64                        ]
    65                      }
    66                    }
    67                  ]
    68                },
    69                "dst_arrow": ">"
    70              }
    71            ],
    72            "primary": {},
    73            "value": {}
    74          }
    75        },
    76        {
    77          "map_key": {
    78            "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,2:0:26-6:1:84",
    79            "key": {
    80              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,2:0:26-2:6:32",
    81              "path": [
    82                {
    83                  "unquoted_string": {
    84                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,2:0:26-2:6:32",
    85                    "value": [
    86                      {
    87                        "string": "github",
    88                        "raw_string": "github"
    89                      }
    90                    ]
    91                  }
    92                }
    93              ]
    94            },
    95            "primary": {},
    96            "value": {
    97              "map": {
    98                "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,2:8:34-6:1:84",
    99                "nodes": [
   100                  {
   101                    "map_key": {
   102                      "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:2:38-3:26:62",
   103                      "edges": [
   104                        {
   105                          "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:2:38-3:26:62",
   106                          "src": {
   107                            "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:2:38-3:13:49",
   108                            "path": [
   109                              {
   110                                "unquoted_string": {
   111                                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:2:38-3:3:39",
   112                                  "value": [
   113                                    {
   114                                      "string": "_",
   115                                      "raw_string": "_"
   116                                    }
   117                                  ]
   118                                }
   119                              },
   120                              {
   121                                "unquoted_string": {
   122                                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:4:40-3:9:45",
   123                                  "value": [
   124                                    {
   125                                      "string": "local",
   126                                      "raw_string": "local"
   127                                    }
   128                                  ]
   129                                }
   130                              },
   131                              {
   132                                "unquoted_string": {
   133                                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:10:46-3:13:49",
   134                                  "value": [
   135                                    {
   136                                      "string": "dev",
   137                                      "raw_string": "dev"
   138                                    }
   139                                  ]
   140                                }
   141                              }
   142                            ]
   143                          },
   144                          "src_arrow": "",
   145                          "dst": {
   146                            "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:17:53-3:26:62",
   147                            "path": [
   148                              {
   149                                "unquoted_string": {
   150                                  "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:17:53-3:26:62",
   151                                  "value": [
   152                                    {
   153                                      "string": "workflows",
   154                                      "raw_string": "workflows"
   155                                    }
   156                                  ]
   157                                }
   158                              }
   159                            ]
   160                          },
   161                          "dst_arrow": ">"
   162                        }
   163                      ],
   164                      "primary": {},
   165                      "value": {}
   166                    }
   167                  },
   168                  {
   169                    "map_key": {
   170                      "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,4:2:65-4:7:70",
   171                      "key": {
   172                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,4:2:65-4:7:70",
   173                        "path": [
   174                          {
   175                            "unquoted_string": {
   176                              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,4:2:65-4:3:66",
   177                              "value": [
   178                                {
   179                                  "string": "_",
   180                                  "raw_string": "_"
   181                                }
   182                              ]
   183                            }
   184                          },
   185                          {
   186                            "unquoted_string": {
   187                              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,4:4:67-4:7:70",
   188                              "value": [
   189                                {
   190                                  "string": "aws",
   191                                  "raw_string": "aws"
   192                                }
   193                              ]
   194                            }
   195                          }
   196                        ]
   197                      },
   198                      "primary": {},
   199                      "value": {}
   200                    }
   201                  },
   202                  {
   203                    "map_key": {
   204                      "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,5:2:73-5:11:82",
   205                      "key": {
   206                        "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,5:2:73-5:11:82",
   207                        "path": [
   208                          {
   209                            "unquoted_string": {
   210                              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,5:2:73-5:11:82",
   211                              "value": [
   212                                {
   213                                  "string": "workflows",
   214                                  "raw_string": "workflows"
   215                                }
   216                              ]
   217                            }
   218                          }
   219                        ]
   220                      },
   221                      "primary": {},
   222                      "value": {}
   223                    }
   224                  }
   225                ]
   226              }
   227            }
   228          }
   229        }
   230      ]
   231    },
   232    "root": {
   233      "id": "",
   234      "id_val": "",
   235      "attributes": {
   236        "label": {
   237          "value": ""
   238        },
   239        "labelDimensions": {
   240          "width": 0,
   241          "height": 0
   242        },
   243        "style": {},
   244        "near_key": null,
   245        "shape": {
   246          "value": ""
   247        },
   248        "direction": {
   249          "value": ""
   250        },
   251        "constraint": null
   252      },
   253      "zIndex": 0
   254    },
   255    "edges": [
   256      {
   257        "index": 0,
   258        "isCurve": false,
   259        "src_arrow": false,
   260        "dst_arrow": true,
   261        "references": [
   262          {
   263            "map_key_edge_index": 0
   264          }
   265        ],
   266        "attributes": {
   267          "label": {
   268            "value": ""
   269          },
   270          "labelDimensions": {
   271            "width": 0,
   272            "height": 0
   273          },
   274          "style": {},
   275          "near_key": null,
   276          "shape": {
   277            "value": ""
   278          },
   279          "direction": {
   280            "value": ""
   281          },
   282          "constraint": null
   283        },
   284        "zIndex": 0
   285      },
   286      {
   287        "index": 0,
   288        "isCurve": false,
   289        "src_arrow": false,
   290        "dst_arrow": true,
   291        "references": [
   292          {
   293            "map_key_edge_index": 0
   294          }
   295        ],
   296        "attributes": {
   297          "label": {
   298            "value": ""
   299          },
   300          "labelDimensions": {
   301            "width": 0,
   302            "height": 0
   303          },
   304          "style": {},
   305          "near_key": null,
   306          "shape": {
   307            "value": ""
   308          },
   309          "direction": {
   310            "value": ""
   311          },
   312          "constraint": null
   313        },
   314        "zIndex": 0
   315      }
   316    ],
   317    "objects": [
   318      {
   319        "id": "github",
   320        "id_val": "github",
   321        "references": [
   322          {
   323            "key": {
   324              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:0:0-0:11:11",
   325              "path": [
   326                {
   327                  "unquoted_string": {
   328                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:0:0-0:6:6",
   329                    "value": [
   330                      {
   331                        "string": "github",
   332                        "raw_string": "github"
   333                      }
   334                    ]
   335                  }
   336                },
   337                {
   338                  "unquoted_string": {
   339                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:7:7-0:11:11",
   340                    "value": [
   341                      {
   342                        "string": "code",
   343                        "raw_string": "code"
   344                      }
   345                    ]
   346                  }
   347                }
   348              ]
   349            },
   350            "key_path_index": 0,
   351            "map_key_edge_index": 0
   352          },
   353          {
   354            "key": {
   355              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,2:0:26-2:6:32",
   356              "path": [
   357                {
   358                  "unquoted_string": {
   359                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,2:0:26-2:6:32",
   360                    "value": [
   361                      {
   362                        "string": "github",
   363                        "raw_string": "github"
   364                      }
   365                    ]
   366                  }
   367                }
   368              ]
   369            },
   370            "key_path_index": 0,
   371            "map_key_edge_index": -1
   372          }
   373        ],
   374        "attributes": {
   375          "label": {
   376            "value": "github"
   377          },
   378          "labelDimensions": {
   379            "width": 0,
   380            "height": 0
   381          },
   382          "style": {},
   383          "near_key": null,
   384          "shape": {
   385            "value": "rectangle"
   386          },
   387          "direction": {
   388            "value": ""
   389          },
   390          "constraint": null
   391        },
   392        "zIndex": 0
   393      },
   394      {
   395        "id": "code",
   396        "id_val": "code",
   397        "references": [
   398          {
   399            "key": {
   400              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:0:0-0:11:11",
   401              "path": [
   402                {
   403                  "unquoted_string": {
   404                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:0:0-0:6:6",
   405                    "value": [
   406                      {
   407                        "string": "github",
   408                        "raw_string": "github"
   409                      }
   410                    ]
   411                  }
   412                },
   413                {
   414                  "unquoted_string": {
   415                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:7:7-0:11:11",
   416                    "value": [
   417                      {
   418                        "string": "code",
   419                        "raw_string": "code"
   420                      }
   421                    ]
   422                  }
   423                }
   424              ]
   425            },
   426            "key_path_index": 1,
   427            "map_key_edge_index": 0
   428          }
   429        ],
   430        "attributes": {
   431          "label": {
   432            "value": "code"
   433          },
   434          "labelDimensions": {
   435            "width": 0,
   436            "height": 0
   437          },
   438          "style": {},
   439          "near_key": null,
   440          "shape": {
   441            "value": "rectangle"
   442          },
   443          "direction": {
   444            "value": ""
   445          },
   446          "constraint": null
   447        },
   448        "zIndex": 0
   449      },
   450      {
   451        "id": "local",
   452        "id_val": "local",
   453        "references": [
   454          {
   455            "key": {
   456              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:15:15-0:24:24",
   457              "path": [
   458                {
   459                  "unquoted_string": {
   460                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:15:15-0:20:20",
   461                    "value": [
   462                      {
   463                        "string": "local",
   464                        "raw_string": "local"
   465                      }
   466                    ]
   467                  }
   468                },
   469                {
   470                  "unquoted_string": {
   471                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:21:21-0:24:24",
   472                    "value": [
   473                      {
   474                        "string": "dev",
   475                        "raw_string": "dev"
   476                      }
   477                    ]
   478                  }
   479                }
   480              ]
   481            },
   482            "key_path_index": 0,
   483            "map_key_edge_index": 0
   484          },
   485          {
   486            "key": {
   487              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:2:38-3:13:49",
   488              "path": [
   489                {
   490                  "unquoted_string": {
   491                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:2:38-3:3:39",
   492                    "value": [
   493                      {
   494                        "string": "_",
   495                        "raw_string": "_"
   496                      }
   497                    ]
   498                  }
   499                },
   500                {
   501                  "unquoted_string": {
   502                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:4:40-3:9:45",
   503                    "value": [
   504                      {
   505                        "string": "local",
   506                        "raw_string": "local"
   507                      }
   508                    ]
   509                  }
   510                },
   511                {
   512                  "unquoted_string": {
   513                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:10:46-3:13:49",
   514                    "value": [
   515                      {
   516                        "string": "dev",
   517                        "raw_string": "dev"
   518                      }
   519                    ]
   520                  }
   521                }
   522              ]
   523            },
   524            "key_path_index": 1,
   525            "map_key_edge_index": 0
   526          }
   527        ],
   528        "attributes": {
   529          "label": {
   530            "value": "local"
   531          },
   532          "labelDimensions": {
   533            "width": 0,
   534            "height": 0
   535          },
   536          "style": {},
   537          "near_key": null,
   538          "shape": {
   539            "value": "rectangle"
   540          },
   541          "direction": {
   542            "value": ""
   543          },
   544          "constraint": null
   545        },
   546        "zIndex": 0
   547      },
   548      {
   549        "id": "dev",
   550        "id_val": "dev",
   551        "references": [
   552          {
   553            "key": {
   554              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:15:15-0:24:24",
   555              "path": [
   556                {
   557                  "unquoted_string": {
   558                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:15:15-0:20:20",
   559                    "value": [
   560                      {
   561                        "string": "local",
   562                        "raw_string": "local"
   563                      }
   564                    ]
   565                  }
   566                },
   567                {
   568                  "unquoted_string": {
   569                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,0:21:21-0:24:24",
   570                    "value": [
   571                      {
   572                        "string": "dev",
   573                        "raw_string": "dev"
   574                      }
   575                    ]
   576                  }
   577                }
   578              ]
   579            },
   580            "key_path_index": 1,
   581            "map_key_edge_index": 0
   582          },
   583          {
   584            "key": {
   585              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:2:38-3:13:49",
   586              "path": [
   587                {
   588                  "unquoted_string": {
   589                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:2:38-3:3:39",
   590                    "value": [
   591                      {
   592                        "string": "_",
   593                        "raw_string": "_"
   594                      }
   595                    ]
   596                  }
   597                },
   598                {
   599                  "unquoted_string": {
   600                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:4:40-3:9:45",
   601                    "value": [
   602                      {
   603                        "string": "local",
   604                        "raw_string": "local"
   605                      }
   606                    ]
   607                  }
   608                },
   609                {
   610                  "unquoted_string": {
   611                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:10:46-3:13:49",
   612                    "value": [
   613                      {
   614                        "string": "dev",
   615                        "raw_string": "dev"
   616                      }
   617                    ]
   618                  }
   619                }
   620              ]
   621            },
   622            "key_path_index": 2,
   623            "map_key_edge_index": 0
   624          }
   625        ],
   626        "attributes": {
   627          "label": {
   628            "value": "dev"
   629          },
   630          "labelDimensions": {
   631            "width": 0,
   632            "height": 0
   633          },
   634          "style": {},
   635          "near_key": null,
   636          "shape": {
   637            "value": "rectangle"
   638          },
   639          "direction": {
   640            "value": ""
   641          },
   642          "constraint": null
   643        },
   644        "zIndex": 0
   645      },
   646      {
   647        "id": "workflows",
   648        "id_val": "workflows",
   649        "references": [
   650          {
   651            "key": {
   652              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:17:53-3:26:62",
   653              "path": [
   654                {
   655                  "unquoted_string": {
   656                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,3:17:53-3:26:62",
   657                    "value": [
   658                      {
   659                        "string": "workflows",
   660                        "raw_string": "workflows"
   661                      }
   662                    ]
   663                  }
   664                }
   665              ]
   666            },
   667            "key_path_index": 0,
   668            "map_key_edge_index": 0
   669          },
   670          {
   671            "key": {
   672              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,5:2:73-5:11:82",
   673              "path": [
   674                {
   675                  "unquoted_string": {
   676                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,5:2:73-5:11:82",
   677                    "value": [
   678                      {
   679                        "string": "workflows",
   680                        "raw_string": "workflows"
   681                      }
   682                    ]
   683                  }
   684                }
   685              ]
   686            },
   687            "key_path_index": 0,
   688            "map_key_edge_index": -1
   689          }
   690        ],
   691        "attributes": {
   692          "label": {
   693            "value": "workflows"
   694          },
   695          "labelDimensions": {
   696            "width": 0,
   697            "height": 0
   698          },
   699          "style": {},
   700          "near_key": null,
   701          "shape": {
   702            "value": "rectangle"
   703          },
   704          "direction": {
   705            "value": ""
   706          },
   707          "constraint": null
   708        },
   709        "zIndex": 0
   710      },
   711      {
   712        "id": "aws",
   713        "id_val": "aws",
   714        "references": [
   715          {
   716            "key": {
   717              "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,4:2:65-4:7:70",
   718              "path": [
   719                {
   720                  "unquoted_string": {
   721                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,4:2:65-4:3:66",
   722                    "value": [
   723                      {
   724                        "string": "_",
   725                        "raw_string": "_"
   726                      }
   727                    ]
   728                  }
   729                },
   730                {
   731                  "unquoted_string": {
   732                    "range": "d2/testdata/d2oracle/TestMove/include_descendants_underscore.d2,4:4:67-4:7:70",
   733                    "value": [
   734                      {
   735                        "string": "aws",
   736                        "raw_string": "aws"
   737                      }
   738                    ]
   739                  }
   740                }
   741              ]
   742            },
   743            "key_path_index": 1,
   744            "map_key_edge_index": -1
   745          }
   746        ],
   747        "attributes": {
   748          "label": {
   749            "value": "aws"
   750          },
   751          "labelDimensions": {
   752            "width": 0,
   753            "height": 0
   754          },
   755          "style": {},
   756          "near_key": null,
   757          "shape": {
   758            "value": "rectangle"
   759          },
   760          "direction": {
   761            "value": ""
   762          },
   763          "constraint": null
   764        },
   765        "zIndex": 0
   766      }
   767    ]
   768  },
   769  "err": "<nil>"
   770}

View as plain text