(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestNewCmdUpdate_Flags(t *testing.T) { |
| 44 | ios, _, _, _ := iostreams.Test() |
| 45 | f := &cmdutil.Factory{IOStreams: ios, Prompter: &prompter.PrompterMock{}, GitClient: &git.Client{}} |
| 46 | cmd := NewCmdUpdate(f, func(_ *UpdateOptions) error { return nil }) |
| 47 | |
| 48 | flags := []string{"all", "force", "dry-run", "dir", "unpin"} |
| 49 | for _, name := range flags { |
| 50 | assert.NotNil(t, cmd.Flags().Lookup(name), "missing flag: --%s", name) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func TestNewCmdUpdate_ArgsPassedToOptions(t *testing.T) { |
| 55 | ios, _, stdout, stderr := iostreams.Test() |
nothing calls this directly
no test coverage detected