(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestNewImportCommandInvalidFile(t *testing.T) { |
| 46 | cmd := newImportCommand(test.NewFakeCli(&fakeClient{})) |
| 47 | cmd.SetOut(io.Discard) |
| 48 | cmd.SetErr(io.Discard) |
| 49 | cmd.SetArgs([]string{"testdata/import-command-success.unexistent-file"}) |
| 50 | assert.ErrorContains(t, cmd.Execute(), "testdata/import-command-success.unexistent-file") |
| 51 | } |
| 52 | |
| 53 | func TestNewImportCommandSuccess(t *testing.T) { |
| 54 | testCases := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…