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

Function TestDiscoverPrompts

internal/metadata/discover_test.go:126–135  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

124}
125
126func 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
137func TestDiscoverPlugins(t *testing.T) {
138 root := t.TempDir()

Callers

nothing calls this directly

Calls 2

DiscoverResourcesFunction · 0.85
writeFileFunction · 0.70

Tested by

no test coverage detected