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

Function TestRunValidate_ValidTasks

apps/cli/internal/cli/validate_test.go:381–393  ·  view source on GitHub ↗

--- Command-level tests ---

(t *testing.T)

Source from the content-addressed store, hash-verified

379// --- Command-level tests ---
380
381func TestRunValidate_ValidTasks(t *testing.T) {
382 tmpDir := createValidateTestFiles(t)
383 resetValidateFlags()
384
385 output, err := captureValidateOutput(t, []string{tmpDir})
386 if err != nil {
387 t.Fatalf("runValidate failed: %v", err)
388 }
389
390 if !strings.Contains(output, "2 task(s) are valid") {
391 t.Errorf("expected success message, got:\n%s", output)
392 }
393}
394
395func TestRunValidate_JSONFormat(t *testing.T) {
396 tmpDir := createValidateTestFiles(t)

Callers

nothing calls this directly

Calls 3

createValidateTestFilesFunction · 0.85
resetValidateFlagsFunction · 0.85
captureValidateOutputFunction · 0.85

Tested by

no test coverage detected