MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / TestSkillSearchFindsMatch

Function TestSkillSearchFindsMatch

internal/cli/cmd_skill_test.go:150–164  ·  view source on GitHub ↗

============================================================================ search — search across configured repos ============================================================================

(t *testing.T)

Source from the content-addressed store, hash-verified

148// ============================================================================
149
150func TestSkillSearchFindsMatch(t *testing.T) {
151 isolatedHome(t)
152 seedEntity(t, entities.KindSkill, "deep-research", "content", "Deep research skill")
153 seedEntity(t, entities.KindSkill, "code-review", "content", "Code review")
154 stdout, _, code := execute(t, "skill", "search", "deep", "--local")
155 if code != 0 {
156 t.Fatalf("exit = %d", code)
157 }
158 if !strings.Contains(stdout, "deep-research") {
159 t.Fatalf("search missing match:\n%s", stdout)
160 }
161 if strings.Contains(stdout, "code-review") {
162 t.Fatalf("search should not include non-matching:\n%s", stdout)
163 }
164}
165
166func TestSkillSearchNoResults(t *testing.T) {
167 isolatedHome(t)

Callers

nothing calls this directly

Calls 3

isolatedHomeFunction · 0.85
seedEntityFunction · 0.85
executeFunction · 0.85

Tested by

no test coverage detected