============================================================================ search — search across configured repos ============================================================================
(t *testing.T)
| 148 | // ============================================================================ |
| 149 | |
| 150 | func 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 | |
| 166 | func TestSkillSearchNoResults(t *testing.T) { |
| 167 | isolatedHome(t) |
nothing calls this directly
no test coverage detected