Remove unused stdin field from create command tests
The 'stdin' field and related code were removed from TestNewCmdCreate as they were no longer used. This simplifies the test structure and eliminates unnecessary code.
This commit is contained in:
parent
872cf495c2
commit
666f5574e4
1 changed files with 0 additions and 4 deletions
|
|
@ -23,7 +23,6 @@ func TestNewCmdCreate(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
args string
|
args string
|
||||||
stdin string
|
|
||||||
tty bool
|
tty bool
|
||||||
wantOpts *CreateOptions
|
wantOpts *CreateOptions
|
||||||
wantErr string
|
wantErr string
|
||||||
|
|
@ -82,9 +81,6 @@ func TestNewCmdCreate(t *testing.T) {
|
||||||
cmd.SetIn(stdin)
|
cmd.SetIn(stdin)
|
||||||
cmd.SetOut(io.Discard)
|
cmd.SetOut(io.Discard)
|
||||||
cmd.SetErr(io.Discard)
|
cmd.SetErr(io.Discard)
|
||||||
if tt.stdin != "" {
|
|
||||||
stdin.WriteString(tt.stdin)
|
|
||||||
}
|
|
||||||
|
|
||||||
_, err = cmd.ExecuteC()
|
_, err = cmd.ExecuteC()
|
||||||
if tt.wantErr != "" {
|
if tt.wantErr != "" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue