(t *testing.T)
| 124 | } |
| 125 | |
| 126 | func TestDiscoverPrompts(t *testing.T) { |
| 127 | root := t.TempDir() |
| 128 | writeFile(t, filepath.Join(root, "prompts", "summarize.md"), "---\nname: summarize\ndescription: Summarize text\n---\n") |
| 129 | writeFile(t, filepath.Join(root, "LICENSE.md"), "MIT") |
| 130 | |
| 131 | res := DiscoverResources(root, "", entities.KindPrompt) |
| 132 | if len(res) != 1 || res[0].Name != "summarize" { |
| 133 | t.Fatalf("prompt discovery failed: %+v", res) |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | func TestDiscoverPlugins(t *testing.T) { |
| 138 | root := t.TempDir() |
nothing calls this directly
no test coverage detected