...

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

View as plain text