From 31258b995fc2d1ac5614f627c33b3f660704d7e3 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Sun, 8 Nov 2026 02:54:31 +0800 Subject: [PATCH] Avoid duplicate geometry fixture variable in scaled-move coverage --- internal/platform/canvas_model_integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/platform/canvas_model_integration_test.go b/internal/platform/canvas_model_integration_test.go index 963e799..8aabab5 100644 --- a/internal/platform/canvas_model_integration_test.go +++ b/internal/platform/canvas_model_integration_test.go @@ -275,8 +275,8 @@ func TestCanonicalModelMigrationAndIncrementalLifecycle(t *testing.T) { modelChange{Kind: "element", ID: memberID, Before: modelJSON(nil), After: modelJSON(member)}) model = read() oldGeometry := model.Elements[innerFrame]["geometry"] - geometry := oldGeometry.(map[string]any) - normalizedGeometry := response{"x": (geometry["x"].(float64) - 24) / 2, "y": (geometry["y"].(float64) - 36) / 2, "width": geometry["width"].(float64) / 2, "height": geometry["height"].(float64) / 2, "rotation": geometry["rotation"]} + containerGeometry := oldGeometry.(map[string]any) + normalizedGeometry := response{"x": (containerGeometry["x"].(float64) - 24) / 2, "y": (containerGeometry["y"].(float64) - 36) / 2, "width": containerGeometry["width"].(float64) / 2, "height": containerGeometry["height"].(float64) / 2, "rotation": containerGeometry["rotation"]} normalizedPresentation := response{"contentScale": .75, "unitScale": .5, "future": response{"keep": "metadata"}} movedInner := inner movedInner.Parent = &modelParent{CanvasID: newCanvas, EntryElementID: innerFrame}