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:
Kynan Ware 2025-09-11 09:20:48 -06:00
parent 872cf495c2
commit 666f5574e4

View file

@ -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 != "" {