Commit 10a56d1d
10a56d1d00edMerged
Svyatoslav Dumchenko <[email protected]> · 4 years ago · 4 files · +2 added · -2 deleted
Description
Rename tests a bit
Details
- Commit
- 10a56d1d00ed
- Parent
- d9bccbd37b13
cmd/helmwave/completion_internal_test.goaddedView file
1+
package main2+
3+
func (s *CliTestSuite) TestCompletion() {4+
tests := []struct {5+
args []string6+
fails bool7+
}{8+
{9+
args: []string{"helmwave", "completion"},10+
fails: true,11+
},12+
{13+
args: []string{"helmwave", "completion", "bash"},14+
fails: false,15+
},16+
{17+
args: []string{"helmwave", "completion", "zsh"},18+
fails: false,19+
},20+
{21+
args: []string{"helmwave", "completion", "ash"},22+
fails: true,23+
},24+
}25+
26+
app, _, _, _ := s.prepareApp() //nolint:dogsled // no need to access nor stdin or stdout or stderr27+
28+
for _, tt := range tests {29+
err := app.Run(tt.args)30+
if tt.fails {31+
s.Error(err)32+
} else {33+
s.NoError(err)34+
}35+
}36+
}cmd/helmwave/completion_test.godeleted
Loading diff…
cmd/helmwave/main_internal_test.goaddedView file
Loading diff…
cmd/helmwave/main_test.godeleted
Loading diff…