(t *testing.T)
| 190 | } |
| 191 | |
| 192 | func TestParseTaskContent_MissingFrontmatter(t *testing.T) { |
| 193 | content := []byte(`# No Frontmatter |
| 194 | |
| 195 | This 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 | |
| 204 | func TestParseTaskContent_MalformedYAML(t *testing.T) { |
| 205 | content := []byte(`--- |
nothing calls this directly
no test coverage detected