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

Function TestInferCatalogFile

internal/metadata/catalog_test.go:149–159  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

147}
148
149func TestInferCatalogFile(t *testing.T) {
150 root := t.TempDir()
151 writeFile(t, filepath.Join(root, "FULL-SKILLS.md"), `| Skill | Description |
152| --- | --- |
153| deploy | Deploys apps |
154`)
155
156 if got := inferCatalogFile(root, entities.KindSkill); got != "FULL-SKILLS.md" {
157 t.Fatalf("inferCatalogFile() = %q, want FULL-SKILLS.md", got)
158 }
159}
160
161func TestInferCatalogFileIgnoresReadme(t *testing.T) {
162 // A README with a table must NOT be mistaken for a resource catalog — that

Callers

nothing calls this directly

Calls 2

inferCatalogFileFunction · 0.85
writeFileFunction · 0.70

Tested by

no test coverage detected