MCPcopy Create free account
hub / github.com/alibaba/open-code-review / delegateExamples

Function delegateExamples

internal/delegate/instructions_test.go:93–110  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

91}
92
93func delegateExamples(t *testing.T) []string {
94 t.Helper()
95 docs := []string{
96 "skills/open-code-review-delegate/SKILL.md",
97 "plugins/open-code-review/skills/open-code-review-delegate/SKILL.md",
98 "plugins/open-code-review/claude-code/commands/delegate-review.md",
99 "plugins/open-code-review/kimi-code/commands/delegate-review.md",
100 }
101 for _, locale := range []string{"en", "zh", "ja", "ko", "ru"} {
102 docs = append(docs, "pages/src/content/docs/"+locale+"/integrations/delegate.md")
103 }
104 // Go runs package tests from the package directory, including with -trimpath.
105 examples, err := readDelegateExamples(os.DirFS(filepath.Join("..", "..")), docs)
106 if err != nil {
107 t.Fatal(err)
108 }
109 return examples
110}
111
112func readDelegateExamples(root fs.FS, docs []string) ([]string, error) {
113 if len(docs) == 0 {

Callers 2

TestDelegateDiffExamplesFunction · 0.85
TestDelegatePagerPTYFunction · 0.85

Calls 1

readDelegateExamplesFunction · 0.85

Tested by

no test coverage detected