(t *testing.T)
| 352 | } |
| 353 | |
| 354 | func 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 | |
| 368 | func TestImportCommand_RepoFlagAliasesProject(t *testing.T) { |
| 369 | resetImportFlags() |
nothing calls this directly
no test coverage detected