d2/testdata/d2oracle/TestCreate/edge_nested.exp.json
Alexander Wang 524c089a74 oss
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00

241 lines
6.1 KiB
JSON

{
"graph": {
"ast": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-1:0:19",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:18:18",
"key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:10:10",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:9:9",
"value": [
{
"string": "container",
"raw_string": "container"
}
]
}
}
]
},
"edges": [
{
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:17:17",
"src": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:13:13",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:12:12",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:15:15-0:17:17",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:16:16-0:17:17",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"label_dimensions": {
"width": 0,
"height": 0
},
"attributes": {
"label": {
"value": ""
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
"edges": [
{
"index": 0,
"minWidth": 0,
"minHeight": 0,
"label_dimensions": {
"width": 0,
"height": 0
},
"isCurve": false,
"src_arrow": false,
"dst_arrow": true,
"references": [
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": ""
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
}
],
"objects": [
{
"id": "container",
"id_val": "container",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:10:10",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:9:9",
"value": [
{
"string": "container",
"raw_string": "container"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "container"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
{
"id": "x",
"id_val": "x",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:13:13",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:12:12",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "x"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
{
"id": "y",
"id_val": "y",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:15:15-0:17:17",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:16:16-0:17:17",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "y"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
}
]
},
"err": "<nil>"
}