Files
dingtalk-workspace-cli/internal/cli/homology/paramdecl_diag_test.go
玉澜andCursor b7f04fd2a0 refactor(schema): break corecmd→cli cycle and split contract seams
Move AnnotateRuntime* into cli/runtimeannotate and the Cobra-keyed
ContractFinal store into cli/contractfinal so corecmd depends on thin
subpackages instead of the cli delivery root. Keep contract as DTO-only,
document Description declare-vs-delivery, and house homology gates under
cli/homology.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 22:16:17 +08:00

29 lines
646 B
Go

package homology
import (
"testing"
"github.com/DingTalk-Real-AI/dingtalk-workspace-cli/internal/app"
)
func TestParamDeclAnnotationCompare(t *testing.T) {
root := app.NewSchemaSourceRootCommand()
for _, path := range [][]string{
{"aisearch", "enterprise"},
{"hrbrain", "search", "employees"},
{"chat", "add-emoji"},
} {
cmd, _, err := root.Find(path)
if err != nil || cmd == nil {
t.Logf("%v: NOT FOUND", path)
continue
}
ann := cmd.Annotations["dws.schema.param_decls"]
if ann == "" {
t.Logf("%v: NO param_decls annotation", path)
} else {
t.Logf("%v: HAS param_decls (%d bytes)", path, len(ann))
}
}
}