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

Function TestSkillSearchNoResults

internal/cli/cmd_skill_test.go:166–176  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

164}
165
166func TestSkillSearchNoResults(t *testing.T) {
167 isolatedHome(t)
168 seedEntity(t, entities.KindSkill, "deep-research", "content", "Deep research skill")
169 stdout, _, code := execute(t, "skill", "search", "nonexistent", "--local")
170 if code != 0 {
171 t.Fatalf("exit = %d", code)
172 }
173 if !strings.Contains(stdout, "No skills found matching") {
174 t.Fatalf("expected no-match message:\n%s", stdout)
175 }
176}
177
178func TestSkillSearchMatchesDescription(t *testing.T) {
179 isolatedHome(t)

Callers

nothing calls this directly

Calls 3

isolatedHomeFunction · 0.85
seedEntityFunction · 0.85
executeFunction · 0.85

Tested by

no test coverage detected