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

Function TestParseTaskContent_EmptyBody

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

Source from the content-addressed store, hash-verified

288}
289
290func TestParseTaskContent_EmptyBody(t *testing.T) {
291 content := []byte(`---
292id: "006"
293title: "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
307func TestExtractFrontmatter_NoFrontmatter(t *testing.T) {
308 content := []byte("Just plain content")

Callers

nothing calls this directly

Calls 1

ParseTaskContentFunction · 0.85

Tested by

no test coverage detected