(t *testing.T)
| 288 | } |
| 289 | |
| 290 | func TestParseTaskContent_EmptyBody(t *testing.T) { |
| 291 | content := []byte(`--- |
| 292 | id: "006" |
| 293 | title: "Empty Body" |
| 294 | --- |
| 295 | `) |
| 296 | |
| 297 | task, err := ParseTaskContent("empty-body.md", content) |
| 298 | if err != nil { |
| 299 | t.Fatalf("expected no error, got: %v", err) |
| 300 | } |
| 301 | |
| 302 | if task.Body != "" { |
| 303 | t.Errorf("expected empty body, got '%s'", task.Body) |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | func TestExtractFrontmatter_NoFrontmatter(t *testing.T) { |
| 308 | content := []byte("Just plain content") |
nothing calls this directly
no test coverage detected