docs: annotate Foundry source and deployment lifecycle in Chinese [skip ci]
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// AI canonical 适配的纯回归:验证窄字段更新、未知组件保留和准入 read-set 版本,不运行真实生成。
|
||||
package platform
|
||||
|
||||
import (
|
||||
@@ -5,6 +6,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// TestCanonicalAIPatchPreservesOpaqueModelAndGeometry 检查大尺寸几何/未知 envelope 保留、输入不变,拒绝改 geometry、未知 dataVersion 和错误 owner。
|
||||
func TestCanonicalAIPatchPreservesOpaqueModelAndGeometry(t *testing.T) {
|
||||
before := modelTestDocument()
|
||||
before.Elements["a"]["geometry"].(map[string]any)["width"] = float64(9000)
|
||||
@@ -37,6 +39,7 @@ func TestCanonicalAIPatchPreservesOpaqueModelAndGeometry(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestCanonicalAIProjectionDoesNotExecuteFutureConnections 未来版本连接仍可保存在模型中,但不能被旧 AI 投影误当作可执行连线。
|
||||
func TestCanonicalAIProjectionDoesNotExecuteFutureConnections(t *testing.T) {
|
||||
model := modelTestDocument()
|
||||
model.Elements["b"] = modelTestNode("b", modelRootID)
|
||||
@@ -57,6 +60,8 @@ func TestCanonicalAIProjectionDoesNotExecuteFutureConnections(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestCanonicalAIAdmissionVersions 验证 Expected 精确覆盖活跃画布而排除归档版本,缺项/错头与陈旧版本使用不同错误码。
|
||||
// 该用例仅测版本函数,构造模型并不满足完整树校验。
|
||||
func TestCanonicalAIAdmissionVersions(t *testing.T) {
|
||||
model := modelTestDocument()
|
||||
model.Canvases[modelChildID] = modelCanvas{ID: modelChildID}
|
||||
|
||||
Reference in New Issue
Block a user