From 16d2eee4a35e5f3142c81fa24a8ba616a7d51b95 Mon Sep 17 00:00:00 2001 From: OneRain2333 Date: Thu, 19 Jan 2023 15:24:39 +0800 Subject: [PATCH] update test using go 1.18 --- d2renderers/d2sketch/testdata/twitter/sketch.exp.svg | 2 +- .../testdata/diagram_wider_than_tooltip/sketch.exp.svg | 2 +- .../elk_img_empty_label_panic/dagre/board.exp.json | 2 -- .../elk_img_empty_label_panic/dagre/sketch.exp.svg | 2 +- .../elk_img_empty_label_panic/elk/board.exp.json | 2 -- .../elk_img_empty_label_panic/elk/sketch.exp.svg | 2 +- .../regression/query_param_escape/dagre/board.exp.json | 1 - .../regression/query_param_escape/dagre/sketch.exp.svg | 2 +- .../regression/query_param_escape/elk/board.exp.json | 1 - .../regression/query_param_escape/elk/sketch.exp.svg | 2 +- e2etests/testdata/stable/icon-label/dagre/board.exp.json | 1 - e2etests/testdata/stable/icon-label/dagre/sketch.exp.svg | 2 +- e2etests/testdata/stable/icon-label/elk/board.exp.json | 1 - e2etests/testdata/stable/icon-label/elk/sketch.exp.svg | 2 +- e2etests/testdata/stable/images/dagre/board.exp.json | 2 -- e2etests/testdata/stable/images/dagre/sketch.exp.svg | 2 +- e2etests/testdata/stable/images/elk/board.exp.json | 2 -- e2etests/testdata/stable/images/elk/sketch.exp.svg | 2 +- e2etests/testdata/stable/investigate/dagre/board.exp.json | 2 -- e2etests/testdata/stable/investigate/dagre/sketch.exp.svg | 2 +- e2etests/testdata/stable/investigate/elk/board.exp.json | 2 -- e2etests/testdata/stable/investigate/elk/sketch.exp.svg | 2 +- .../dagre/board.exp.json | 8 -------- .../dagre/sketch.exp.svg | 2 +- .../overlapping_image_container_labels/elk/board.exp.json | 8 -------- .../overlapping_image_container_labels/elk/sketch.exp.svg | 2 +- .../sequence_diagram_all_shapes/dagre/board.exp.json | 1 - .../sequence_diagram_all_shapes/dagre/sketch.exp.svg | 2 +- .../stable/sequence_diagram_all_shapes/elk/board.exp.json | 1 - .../stable/sequence_diagram_all_shapes/elk/sketch.exp.svg | 2 +- testdata/d2compiler/TestCompile/basic_icon.exp.json | 1 - testdata/d2compiler/TestCompile/image_style.exp.json | 1 - .../TestCompile/reserved_icon_near_style.exp.json | 1 - .../d2exporter/TestExport/shape/image_dimensions.exp.json | 1 - testdata/d2oracle/TestMove/slice_style.exp.json | 1 - testdata/d2oracle/TestSet/icon.exp.json | 1 - 36 files changed, 16 insertions(+), 56 deletions(-) diff --git a/d2renderers/d2sketch/testdata/twitter/sketch.exp.svg b/d2renderers/d2sketch/testdata/twitter/sketch.exp.svg index 712e23371..5f82a69de 100644 --- a/d2renderers/d2sketch/testdata/twitter/sketch.exp.svg +++ b/d2renderers/d2sketch/testdata/twitter/sketch.exp.svg @@ -796,7 +796,7 @@ width="3454" height="2449" viewBox="-100 -100 3454 2449">customerissuerstore1Like starbucks or somethingacquirer2I'm not sure what this isnetworkcustomer bankstore bankinitial transactionpayment processor behind the scenessimplified 1 banana please$10 dollarsthinking: wow, inflationchecks bank accountSavings: $11I can do that, here's my cardRun this cardProcess to card issuerProcess this payment$10 debit$10 creditAn error in judgement is about to occur +customerissuerstore1Like starbucks or somethingacquirer2I'm not sure what this isnetworkcustomer bankstore bankinitial transactionpayment processor behind the scenessimplified 1 banana please$10 dollarsthinking: wow, inflationchecks bank accountSavings: $11I can do that, here's my cardRun this cardProcess to card issuerProcess this payment$10 debit$10 creditAn error in judgement is about to occur diff --git a/e2etests/testdata/regression/elk_img_empty_label_panic/dagre/board.exp.json b/e2etests/testdata/regression/elk_img_empty_label_panic/dagre/board.exp.json index 899feb414..1c87797cd 100644 --- a/e2etests/testdata/regression/elk_img_empty_label_panic/dagre/board.exp.json +++ b/e2etests/testdata/regression/elk_img_empty_label_panic/dagre/board.exp.json @@ -30,7 +30,6 @@ "Host": "icons.terrastruct.com", "Path": "/infra/019-network.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -82,7 +81,6 @@ "Host": "icons.terrastruct.com", "Path": "/infra/019-network.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", diff --git a/e2etests/testdata/regression/elk_img_empty_label_panic/dagre/sketch.exp.svg b/e2etests/testdata/regression/elk_img_empty_label_panic/dagre/sketch.exp.svg index 692e85ece..3b4217d31 100644 --- a/e2etests/testdata/regression/elk_img_empty_label_panic/dagre/sketch.exp.svg +++ b/e2etests/testdata/regression/elk_img_empty_label_panic/dagre/sketch.exp.svg @@ -18,7 +18,7 @@ width="488" height="328" viewBox="-100 -100 488 328"> + \ No newline at end of file diff --git a/e2etests/testdata/regression/elk_img_empty_label_panic/elk/board.exp.json b/e2etests/testdata/regression/elk_img_empty_label_panic/elk/board.exp.json index b1fbe48ae..bdd6a327a 100644 --- a/e2etests/testdata/regression/elk_img_empty_label_panic/elk/board.exp.json +++ b/e2etests/testdata/regression/elk_img_empty_label_panic/elk/board.exp.json @@ -30,7 +30,6 @@ "Host": "icons.terrastruct.com", "Path": "/infra/019-network.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -82,7 +81,6 @@ "Host": "icons.terrastruct.com", "Path": "/infra/019-network.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", diff --git a/e2etests/testdata/regression/elk_img_empty_label_panic/elk/sketch.exp.svg b/e2etests/testdata/regression/elk_img_empty_label_panic/elk/sketch.exp.svg index 6cf3165f8..7080fd426 100644 --- a/e2etests/testdata/regression/elk_img_empty_label_panic/elk/sketch.exp.svg +++ b/e2etests/testdata/regression/elk_img_empty_label_panic/elk/sketch.exp.svg @@ -18,7 +18,7 @@ width="448" height="328" viewBox="-88 -88 448 328"> + \ No newline at end of file diff --git a/e2etests/testdata/regression/query_param_escape/dagre/board.exp.json b/e2etests/testdata/regression/query_param_escape/dagre/board.exp.json index 2f5d36bbb..80a0cdd50 100644 --- a/e2etests/testdata/regression/query_param_escape/dagre/board.exp.json +++ b/e2etests/testdata/regression/query_param_escape/dagre/board.exp.json @@ -30,7 +30,6 @@ "Host": "icons.terrastruct.com", "Path": "/infra/019-network.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "fuga=1&hoge", "Fragment": "", diff --git a/e2etests/testdata/regression/query_param_escape/dagre/sketch.exp.svg b/e2etests/testdata/regression/query_param_escape/dagre/sketch.exp.svg index 4e2114b65..c333036cd 100644 --- a/e2etests/testdata/regression/query_param_escape/dagre/sketch.exp.svg +++ b/e2etests/testdata/regression/query_param_escape/dagre/sketch.exp.svg @@ -18,7 +18,7 @@ width="390" height="352" viewBox="-100 -100 390 352">my network +my network my network +my network hello +hello hello +hello ab +ab ab +ab aabbccddllffwwyynniijjkkssuurmeemmmmgghhzzooppqqrrttvvxxabac 123456 +aabbccddllffwwyynniijjkkssuurmeemmmmgghhzzooppqqrrttvvxxabac 123456 diff --git a/e2etests/testdata/stable/investigate/elk/board.exp.json b/e2etests/testdata/stable/investigate/elk/board.exp.json index 1714dbcd0..d52023422 100644 --- a/e2etests/testdata/stable/investigate/elk/board.exp.json +++ b/e2etests/testdata/stable/investigate/elk/board.exp.json @@ -481,7 +481,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/time.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -575,7 +574,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/time.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", diff --git a/e2etests/testdata/stable/investigate/elk/sketch.exp.svg b/e2etests/testdata/stable/investigate/elk/sketch.exp.svg index 84ccb04ba..2d5155582 100644 --- a/e2etests/testdata/stable/investigate/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/investigate/elk/sketch.exp.svg @@ -18,7 +18,7 @@ width="894" height="4930" viewBox="-88 -88 894 4930">aabbccddllffwwyynniijjkkssuurmeemmmmgghhzzooppqqrrttvvxxabac 123456 +aabbccddllffwwyynniijjkkssuurmeemmmmgghhzzooppqqrrttvvxxabac 123456 diff --git a/e2etests/testdata/stable/overlapping_image_container_labels/dagre/board.exp.json b/e2etests/testdata/stable/overlapping_image_container_labels/dagre/board.exp.json index 8b76ab744..ebbcd4a94 100644 --- a/e2etests/testdata/stable/overlapping_image_container_labels/dagre/board.exp.json +++ b/e2etests/testdata/stable/overlapping_image_container_labels/dagre/board.exp.json @@ -30,7 +30,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -124,7 +123,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -218,7 +216,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -312,7 +309,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -365,7 +361,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -459,7 +454,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -553,7 +547,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -606,7 +599,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", diff --git a/e2etests/testdata/stable/overlapping_image_container_labels/dagre/sketch.exp.svg b/e2etests/testdata/stable/overlapping_image_container_labels/dagre/sketch.exp.svg index 44f3bfa3d..7e2735094 100644 --- a/e2etests/testdata/stable/overlapping_image_container_labels/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/overlapping_image_container_labels/dagre/sketch.exp.svg @@ -18,7 +18,7 @@ width="1312" height="1416" viewBox="-100 -100 1312 1416">rootcontainerrootleftrightrootinnerrootinnerleftrightleftright to inner leftto inner rightto inner leftto inner rightto left container rootto right container root +rootcontainerrootleftrightrootinnerrootinnerleftrightleftright to inner leftto inner rightto inner leftto inner rightto left container rootto right container root diff --git a/e2etests/testdata/stable/overlapping_image_container_labels/elk/board.exp.json b/e2etests/testdata/stable/overlapping_image_container_labels/elk/board.exp.json index e298dad43..0d5d35a25 100644 --- a/e2etests/testdata/stable/overlapping_image_container_labels/elk/board.exp.json +++ b/e2etests/testdata/stable/overlapping_image_container_labels/elk/board.exp.json @@ -30,7 +30,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -124,7 +123,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -218,7 +216,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -312,7 +309,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -365,7 +361,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -459,7 +454,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -553,7 +547,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", @@ -606,7 +599,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", diff --git a/e2etests/testdata/stable/overlapping_image_container_labels/elk/sketch.exp.svg b/e2etests/testdata/stable/overlapping_image_container_labels/elk/sketch.exp.svg index 06658bb1f..173ad73c2 100644 --- a/e2etests/testdata/stable/overlapping_image_container_labels/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/overlapping_image_container_labels/elk/sketch.exp.svg @@ -18,7 +18,7 @@ width="1522" height="1503" viewBox="-88 -88 1522 1503">rootcontainerrootleftrightrootinnerrootinnerleftrightleftright to inner leftto inner rightto inner leftto inner rightto left container rootto right container root +rootcontainerrootleftrightrootinnerrootinnerleftrightleftright to inner leftto inner rightto inner leftto inner rightto left container rootto right container root diff --git a/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/board.exp.json b/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/board.exp.json index d1cc5c32a..85b572cf3 100644 --- a/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/board.exp.json +++ b/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/board.exp.json @@ -413,7 +413,6 @@ "Host": "icons.terrastruct.com", "Path": "/essentials/004-picture.svg", "RawPath": "", - "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", diff --git a/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/sketch.exp.svg b/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/sketch.exp.svg index 0683606be..3aa758130 100644 --- a/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/sketch.exp.svg @@ -28,7 +28,7 @@ width="5177" height="2984" viewBox="-76 -26 5177 2984">