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

Function TestImportCommand_InvalidFormat

apps/cli/internal/cli/importcmd_test.go:354–366  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

352}
353
354func TestImportCommand_InvalidFormat(t *testing.T) {
355 resetImportFlags()
356 importSource = "something"
357 importFormat = "invalid"
358
359 err := runImport(importCmd, nil)
360 if err == nil {
361 t.Fatal("expected error for invalid format")
362 }
363 if !strings.Contains(err.Error(), "unsupported format") {
364 t.Errorf("unexpected error message: %v", err)
365 }
366}
367
368func TestImportCommand_RepoFlagAliasesProject(t *testing.T) {
369 resetImportFlags()

Callers

nothing calls this directly

Calls 3

resetImportFlagsFunction · 0.85
runImportFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected