docs: annotate Foundry source and deployment lifecycle in Chinese [skip ci]
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// 跨兄弟子图和父级的成员移动回归,复用迁移结果作为真实端口/边界结构输入。
|
||||
package platform
|
||||
|
||||
import (
|
||||
@@ -6,6 +7,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// memberFixture 生成父、非空孩子和空孩子三份 JSON 快照,所有用例得到独立副本。
|
||||
func memberFixture(t *testing.T) map[string]json.RawMessage {
|
||||
t.Helper()
|
||||
parent, children, err := migrateLegacyDocument(json.RawMessage(legacyMigrationFixture), map[string]string{"f": "11111111-1111-4111-8111-111111111111", "empty": "22222222-2222-4222-8222-222222222222"})
|
||||
@@ -14,6 +16,8 @@ func memberFixture(t *testing.T) map[string]json.RawMessage {
|
||||
}
|
||||
return map[string]json.RawMessage{"parent": parent, "11111111-1111-4111-8111-111111111111": children["f"], "22222222-2222-4222-8222-222222222222": children["empty"]}
|
||||
}
|
||||
|
||||
// TestMembersMoveSiblingsAndRestoreParent 先后将边两端移到另一孩子,检查内部边随所有者下沉;再移回父级恢复原坐标和三条边。
|
||||
func TestMembersMoveSiblingsAndRestoreParent(t *testing.T) {
|
||||
raw := memberFixture(t)
|
||||
a, b := "11111111-1111-4111-8111-111111111111", "22222222-2222-4222-8222-222222222222"
|
||||
@@ -60,6 +64,8 @@ func TestMembersMoveSiblingsAndRestoreParent(t *testing.T) {
|
||||
t.Fatal("duplicate content after move")
|
||||
}
|
||||
}
|
||||
|
||||
// TestMembersRejectCollisionCyclesAndCapacity 实际覆盖框移入自身、重复成员和满父画布;容量拒绝后输入孩子 JSON 必须字节不变。
|
||||
func TestMembersRejectCollisionCyclesAndCapacity(t *testing.T) {
|
||||
raw := memberFixture(t)
|
||||
child := "11111111-1111-4111-8111-111111111111"
|
||||
|
||||
Reference in New Issue
Block a user