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>
29 lines
646 B
Go
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))
|
|
}
|
|
}
|
|
}
|