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

Function TestRunValidate_InvalidFormat

apps/cli/internal/cli/validate_test.go:415–427  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

413}
414
415func TestRunValidate_InvalidFormat(t *testing.T) {
416 tmpDir := createValidateTestFiles(t)
417 resetValidateFlags()
418 validateFormat = "invalid"
419
420 _, err := captureValidateOutput(t, []string{tmpDir})
421 if err == nil {
422 t.Fatal("expected error for invalid format, got nil")
423 }
424 if !strings.Contains(err.Error(), "unsupported format") {
425 t.Errorf("expected 'unsupported format' error, got: %v", err)
426 }
427}
428
429func TestRunValidate_StrictMode_NoWarnings(t *testing.T) {
430 // Valid tasks with ALL optional fields filled — strict mode should produce no warnings

Callers

nothing calls this directly

Calls 4

createValidateTestFilesFunction · 0.85
resetValidateFlagsFunction · 0.85
captureValidateOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected