(t *testing.T)
| 247 | } |
| 248 | |
| 249 | func TestLoadSkills_Integration(t *testing.T) { |
| 250 | // Use a temp dir as root (no project/global skills, just builtins) |
| 251 | root := t.TempDir() |
| 252 | idx, err := LoadSkills(root) |
| 253 | if err != nil { |
| 254 | t.Fatalf("LoadSkills error: %v", err) |
| 255 | } |
| 256 | if idx == nil { |
| 257 | t.Fatal("expected non-nil index") |
| 258 | } |
| 259 | if len(idx.Skills) < 5 { |
| 260 | t.Errorf("expected at least 5 builtin skills, got %d", len(idx.Skills)) |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | func TestLoadSkills_ProjectOverridesBuiltin(t *testing.T) { |
| 265 | root := t.TempDir() |
nothing calls this directly
no test coverage detected