MCPcopy Create free account
hub / github.com/driangle/taskmd / TestParseTaskContent_MissingFrontmatter

Function TestParseTaskContent_MissingFrontmatter

sdk/go/parser/markdown_test.go:192–202  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

190}
191
192func TestParseTaskContent_MissingFrontmatter(t *testing.T) {
193 content := []byte(`# No Frontmatter
194
195This file has no frontmatter.
196`)
197
198 _, err := ParseTaskContent("no-frontmatter.md", content)
199 if err == nil {
200 t.Error("expected error for missing frontmatter")
201 }
202}
203
204func TestParseTaskContent_MalformedYAML(t *testing.T) {
205 content := []byte(`---

Callers

nothing calls this directly

Calls 2

ParseTaskContentFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected