(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func 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 | |
| 161 | func TestInferCatalogFileIgnoresReadme(t *testing.T) { |
| 162 | // A README with a table must NOT be mistaken for a resource catalog — that |
nothing calls this directly
no test coverage detected