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

Function TestParseFrontmatter

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

Source from the content-addressed store, hash-verified

153}
154
155func TestParseFrontmatter(t *testing.T) {
156 name, desc, ok := parseFrontmatter("---\nname: foo\ndescription: bar baz\n---\nbody")
157 if !ok || name != "foo" || desc != "bar baz" {
158 t.Fatalf("got name=%q desc=%q ok=%v", name, desc, ok)
159 }
160 if _, _, ok := parseFrontmatter("no frontmatter here"); ok {
161 t.Fatal("expected ok=false for content without frontmatter")
162 }
163}

Callers

nothing calls this directly

Calls 1

parseFrontmatterFunction · 0.85

Tested by

no test coverage detected