(t *testing.T)
| 477 | } |
| 478 | |
| 479 | func TestStatus_MinimalFlag_JSON(t *testing.T) { |
| 480 | tmpDir := createStatusTestFilesWithChildren(t) |
| 481 | resetStatusFlags() |
| 482 | taskDir = tmpDir |
| 483 | statusMinimal = true |
| 484 | statusFormat = "json" |
| 485 | |
| 486 | output := captureStatusOutput(t, "010") |
| 487 | |
| 488 | var raw map[string]any |
| 489 | if err := json.Unmarshal([]byte(output), &raw); err != nil { |
| 490 | t.Fatalf("Failed to parse JSON: %v", err) |
| 491 | } |
| 492 | if _, ok := raw["children"]; ok { |
| 493 | t.Error("--minimal JSON output should not contain 'children' key") |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | func TestStatus_NoChildren(t *testing.T) { |
| 498 | tmpDir := createStatusTestFilesWithChildren(t) |
nothing calls this directly
no test coverage detected