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"
|
||||
)
|
||||
|
||||
// TestConnectionPortReuseCollisionAndCapacity 验证按逻辑端点复用历史 ID,输入输出分离,派生 ID 冲突不可换绑,容量耗尽也不部分改写端口表。
|
||||
func TestConnectionPortReuseCollisionAndCapacity(t *testing.T) {
|
||||
data := map[string]any{"ports": []any{map[string]any{"id": "custom-stable", "nodeId": "n", "handle": "left", "direction": "input"}}}
|
||||
id, created, err := connectionPort(data, "n", "left", "input")
|
||||
@@ -30,6 +32,7 @@ func TestConnectionPortReuseCollisionAndCapacity(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestConnectionExposureBuildsNestedDirectionChain 构造 leaf→middle→root 两层边界,检查逐层端口映射、同方向复用、反方向独立创建及叶节点文档不变。
|
||||
func TestConnectionExposureBuildsNestedDirectionChain(t *testing.T) {
|
||||
frame := func(child string) map[string]any {
|
||||
return map[string]any{"id": "frame", "data": map[string]any{"kind": "frame", "subgraph": map[string]any{"boardId": child}, "ports": []any{}}}
|
||||
|
||||
Reference in New Issue
Block a user