...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestSet/nested_alex.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2oracle/TestSet

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

View as plain text