docs: annotate Foundry source and deployment lifecycle in Chinese [skip ci]
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// 本文件用临时目录和固定事件验证产物隔离及完成判定,不启动 CLI 或真实模型。
|
||||
package codex
|
||||
|
||||
import (
|
||||
@@ -7,6 +8,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// TestCanvasArtifactDirectoryIsolation 拒绝目录外图片、多张图片和软链接,只接收生成目录内唯一图片。
|
||||
func TestCanvasArtifactDirectoryIsolation(t *testing.T) {
|
||||
root := t.TempDir()
|
||||
generated := filepath.Join(root, "generated_images")
|
||||
@@ -48,6 +50,8 @@ func TestCanvasArtifactDirectoryIsolation(t *testing.T) {
|
||||
t.Fatal("symlink escaped job output directory")
|
||||
}
|
||||
}
|
||||
|
||||
// TestCanvasAgentCompletionRequiresSuccessfulTurn 拒绝仅有部分文本或完成后报错的流,接受成功结束的流。
|
||||
func TestCanvasAgentCompletionRequiresSuccessfulTurn(t *testing.T) {
|
||||
if _, ok := canvasAgentText([]byte("{\"type\":\"item.completed\",\"item\":{\"type\":\"agent_message\",\"text\":\"partial\"}}\n")); ok {
|
||||
t.Fatal("partial generation accepted")
|
||||
|
||||
Reference in New Issue
Block a user