...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/edge_conflict.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/edge_conflict.d2,0:0:0-4:0:26",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:0:0-0:14:14",
    11            "edges": [
    12              {
    13                "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:0:0-0:14:14",
    14                "src": {
    15                  "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:0:0-0:5:5",
    16                  "path": [
    17                    {
    18                      "unquoted_string": {
    19                        "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:0:0-0:3:3",
    20                        "value": [
    21                          {
    22                            "string": "y 2",
    23                            "raw_string": "y 2"
    24                          }
    25                        ]
    26                      }
    27                    },
    28                    {
    29                      "unquoted_string": {
    30                        "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:4:4-0:5:5",
    31                        "value": [
    32                          {
    33                            "string": "a",
    34                            "raw_string": "a"
    35                          }
    36                        ]
    37                      }
    38                    }
    39                  ]
    40                },
    41                "src_arrow": "",
    42                "dst": {
    43                  "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:9:9-0:14:14",
    44                  "path": [
    45                    {
    46                      "unquoted_string": {
    47                        "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:9:9-0:12:12",
    48                        "value": [
    49                          {
    50                            "string": "y 2",
    51                            "raw_string": "y 2"
    52                          }
    53                        ]
    54                      }
    55                    },
    56                    {
    57                      "unquoted_string": {
    58                        "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:13:13-0:14:14",
    59                        "value": [
    60                          {
    61                            "string": "b",
    62                            "raw_string": "b"
    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/edge_conflict.d2,1:0:15-3:1:25",
    79            "key": {
    80              "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,1:0:15-1:1:16",
    81              "path": [
    82                {
    83                  "unquoted_string": {
    84                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,1:0:15-1:1:16",
    85                    "value": [
    86                      {
    87                        "string": "y",
    88                        "raw_string": "y"
    89                      }
    90                    ]
    91                  }
    92                }
    93              ]
    94            },
    95            "primary": {},
    96            "value": {
    97              "map": {
    98                "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,1:3:18-3:1:25",
    99                "nodes": [
   100                  {
   101                    "map_key": {
   102                      "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,2:2:22-2:3:23",
   103                      "key": {
   104                        "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,2:2:22-2:3:23",
   105                        "path": [
   106                          {
   107                            "unquoted_string": {
   108                              "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,2:2:22-2:3:23",
   109                              "value": [
   110                                {
   111                                  "string": "x",
   112                                  "raw_string": "x"
   113                                }
   114                              ]
   115                            }
   116                          }
   117                        ]
   118                      },
   119                      "primary": {},
   120                      "value": {}
   121                    }
   122                  }
   123                ]
   124              }
   125            }
   126          }
   127        }
   128      ]
   129    },
   130    "root": {
   131      "id": "",
   132      "id_val": "",
   133      "attributes": {
   134        "label": {
   135          "value": ""
   136        },
   137        "labelDimensions": {
   138          "width": 0,
   139          "height": 0
   140        },
   141        "style": {},
   142        "near_key": null,
   143        "shape": {
   144          "value": ""
   145        },
   146        "direction": {
   147          "value": ""
   148        },
   149        "constraint": null
   150      },
   151      "zIndex": 0
   152    },
   153    "edges": [
   154      {
   155        "index": 0,
   156        "isCurve": false,
   157        "src_arrow": false,
   158        "dst_arrow": true,
   159        "references": [
   160          {
   161            "map_key_edge_index": 0
   162          }
   163        ],
   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    ],
   185    "objects": [
   186      {
   187        "id": "y 2",
   188        "id_val": "y 2",
   189        "references": [
   190          {
   191            "key": {
   192              "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:0:0-0:5:5",
   193              "path": [
   194                {
   195                  "unquoted_string": {
   196                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:0:0-0:3:3",
   197                    "value": [
   198                      {
   199                        "string": "y 2",
   200                        "raw_string": "y 2"
   201                      }
   202                    ]
   203                  }
   204                },
   205                {
   206                  "unquoted_string": {
   207                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:4:4-0:5:5",
   208                    "value": [
   209                      {
   210                        "string": "a",
   211                        "raw_string": "a"
   212                      }
   213                    ]
   214                  }
   215                }
   216              ]
   217            },
   218            "key_path_index": 0,
   219            "map_key_edge_index": 0
   220          },
   221          {
   222            "key": {
   223              "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:9:9-0:14:14",
   224              "path": [
   225                {
   226                  "unquoted_string": {
   227                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:9:9-0:12:12",
   228                    "value": [
   229                      {
   230                        "string": "y 2",
   231                        "raw_string": "y 2"
   232                      }
   233                    ]
   234                  }
   235                },
   236                {
   237                  "unquoted_string": {
   238                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:13:13-0:14:14",
   239                    "value": [
   240                      {
   241                        "string": "b",
   242                        "raw_string": "b"
   243                      }
   244                    ]
   245                  }
   246                }
   247              ]
   248            },
   249            "key_path_index": 0,
   250            "map_key_edge_index": 0
   251          }
   252        ],
   253        "attributes": {
   254          "label": {
   255            "value": "y 2"
   256          },
   257          "labelDimensions": {
   258            "width": 0,
   259            "height": 0
   260          },
   261          "style": {},
   262          "near_key": null,
   263          "shape": {
   264            "value": "rectangle"
   265          },
   266          "direction": {
   267            "value": ""
   268          },
   269          "constraint": null
   270        },
   271        "zIndex": 0
   272      },
   273      {
   274        "id": "a",
   275        "id_val": "a",
   276        "references": [
   277          {
   278            "key": {
   279              "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:0:0-0:5:5",
   280              "path": [
   281                {
   282                  "unquoted_string": {
   283                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:0:0-0:3:3",
   284                    "value": [
   285                      {
   286                        "string": "y 2",
   287                        "raw_string": "y 2"
   288                      }
   289                    ]
   290                  }
   291                },
   292                {
   293                  "unquoted_string": {
   294                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:4:4-0:5:5",
   295                    "value": [
   296                      {
   297                        "string": "a",
   298                        "raw_string": "a"
   299                      }
   300                    ]
   301                  }
   302                }
   303              ]
   304            },
   305            "key_path_index": 1,
   306            "map_key_edge_index": 0
   307          }
   308        ],
   309        "attributes": {
   310          "label": {
   311            "value": "a"
   312          },
   313          "labelDimensions": {
   314            "width": 0,
   315            "height": 0
   316          },
   317          "style": {},
   318          "near_key": null,
   319          "shape": {
   320            "value": "rectangle"
   321          },
   322          "direction": {
   323            "value": ""
   324          },
   325          "constraint": null
   326        },
   327        "zIndex": 0
   328      },
   329      {
   330        "id": "b",
   331        "id_val": "b",
   332        "references": [
   333          {
   334            "key": {
   335              "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:9:9-0:14:14",
   336              "path": [
   337                {
   338                  "unquoted_string": {
   339                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:9:9-0:12:12",
   340                    "value": [
   341                      {
   342                        "string": "y 2",
   343                        "raw_string": "y 2"
   344                      }
   345                    ]
   346                  }
   347                },
   348                {
   349                  "unquoted_string": {
   350                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,0:13:13-0:14:14",
   351                    "value": [
   352                      {
   353                        "string": "b",
   354                        "raw_string": "b"
   355                      }
   356                    ]
   357                  }
   358                }
   359              ]
   360            },
   361            "key_path_index": 1,
   362            "map_key_edge_index": 0
   363          }
   364        ],
   365        "attributes": {
   366          "label": {
   367            "value": "b"
   368          },
   369          "labelDimensions": {
   370            "width": 0,
   371            "height": 0
   372          },
   373          "style": {},
   374          "near_key": null,
   375          "shape": {
   376            "value": "rectangle"
   377          },
   378          "direction": {
   379            "value": ""
   380          },
   381          "constraint": null
   382        },
   383        "zIndex": 0
   384      },
   385      {
   386        "id": "y",
   387        "id_val": "y",
   388        "references": [
   389          {
   390            "key": {
   391              "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,1:0:15-1:1:16",
   392              "path": [
   393                {
   394                  "unquoted_string": {
   395                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,1:0:15-1:1:16",
   396                    "value": [
   397                      {
   398                        "string": "y",
   399                        "raw_string": "y"
   400                      }
   401                    ]
   402                  }
   403                }
   404              ]
   405            },
   406            "key_path_index": 0,
   407            "map_key_edge_index": -1
   408          }
   409        ],
   410        "attributes": {
   411          "label": {
   412            "value": "y"
   413          },
   414          "labelDimensions": {
   415            "width": 0,
   416            "height": 0
   417          },
   418          "style": {},
   419          "near_key": null,
   420          "shape": {
   421            "value": "rectangle"
   422          },
   423          "direction": {
   424            "value": ""
   425          },
   426          "constraint": null
   427        },
   428        "zIndex": 0
   429      },
   430      {
   431        "id": "x",
   432        "id_val": "x",
   433        "references": [
   434          {
   435            "key": {
   436              "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,2:2:22-2:3:23",
   437              "path": [
   438                {
   439                  "unquoted_string": {
   440                    "range": "d2/testdata/d2oracle/TestMove/edge_conflict.d2,2:2:22-2:3:23",
   441                    "value": [
   442                      {
   443                        "string": "x",
   444                        "raw_string": "x"
   445                      }
   446                    ]
   447                  }
   448                }
   449              ]
   450            },
   451            "key_path_index": 0,
   452            "map_key_edge_index": -1
   453          }
   454        ],
   455        "attributes": {
   456          "label": {
   457            "value": "x"
   458          },
   459          "labelDimensions": {
   460            "width": 0,
   461            "height": 0
   462          },
   463          "style": {},
   464          "near_key": null,
   465          "shape": {
   466            "value": "rectangle"
   467          },
   468          "direction": {
   469            "value": ""
   470          },
   471          "constraint": null
   472        },
   473        "zIndex": 0
   474      }
   475    ]
   476  },
   477  "err": "<nil>"
   478}

View as plain text