docs(gateway): gateway 剩余文件注释改中文(逐行 1:1,代码零字节改动)
主人 2026-10-03 拍板「注释一律中文」;gateway 至此整包注释中文化完成(本会话共 3 批: 已推库 16 个文件 + 本批剩余文件)。 校验:机械校验(非注释改动行)= 空;剥注释后代码文本逐行比对全等(不一致文件数 0); 全树 go test ./... 58 包 ok / 0 FAIL;交叉编译绿。
This commit is contained in:
1 parent
91e8d7a029
commit
074ffc4ebf
73 files changed
+2529
-2529
No files matched your search
@@ -10,9 +10,9 @@ import (
|
||||
"git.yeij.top/AskaEth/Cyrene_v2/internal/runtime/knowledge"
|
||||
)
|
||||
|
||||
// TestAdminRagDeleteRemovesDocument proves the delete write path is real: the
|
||||
// indexed document (project entry + its chapters) is gone from the list and the
|
||||
// search, and deleting it again answers 404 rather than a fabricated success.
|
||||
// TestAdminRagDeleteRemovesDocument 证明删除写路径是真的:已索引
|
||||
// 的文档(项目条目 + 其章节)从列表与搜索中消失,
|
||||
// 再次删除它返回 404 而不是编造的成功。
|
||||
func TestAdminRagDeleteRemovesDocument(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
@@ -67,8 +67,8 @@ func TestAdminRagDeleteRemovesDocument(t *testing.T) {
|
||||
wantErrorShape(t, body2)
|
||||
}
|
||||
|
||||
// TestAdminRagDeleteUnwired501 asserts an unconfigured RAG service still answers
|
||||
// honestly instead of pretending the document was removed.
|
||||
// TestAdminRagDeleteUnwired501 断言未配置的 RAG 服务仍然
|
||||
// 诚实作答,而不是假装文档已被移除。
|
||||
func TestAdminRagDeleteUnwired501(t *testing.T) {
|
||||
t.Parallel()
|
||||
srv, ts, jwt := buildEnv(t, cfgDefault(), Deps{})
|
||||
@@ -82,7 +82,7 @@ func TestAdminRagDeleteUnwired501(t *testing.T) {
|
||||
wantErrorShape(t, body)
|
||||
}
|
||||
|
||||
// TestAdminRagDeleteRequiresOwner asserts the write route stays owner-gated.
|
||||
// TestAdminRagDeleteRequiresOwner 断言该写路由仍然受 owner 门控。
|
||||
func TestAdminRagDeleteRequiresOwner(t *testing.T) {
|
||||
t.Parallel()
|
||||
srv, ts, jwt := buildEnv(t, cfgDefault(), Deps{RAG: newRagStoreForGateway(t)})
|
||||
|
||||
Reference in new issue
Block a user