MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestLoadSkills_Integration

Function TestLoadSkills_Integration

skills/loader_test.go:249–262  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

247}
248
249func 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
264func TestLoadSkills_ProjectOverridesBuiltin(t *testing.T) {
265 root := t.TempDir()

Callers

nothing calls this directly

Calls 1

LoadSkillsFunction · 0.85

Tested by

no test coverage detected