This commit is contained in:
Erik Winter 2024-11-01 07:31:50 +01:00
parent 555616edee
commit f19567f8ff
1 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,16 @@ import (
func TestCommand(t *testing.T) { func TestCommand(t *testing.T) {
t.Parallel() t.Parallel()
cmds := []*command.Command{
{
Name: "default",
Default: true,
},
}
cli := command.CLI{
CMDS: cmds,
}
for _, tc := range []struct { for _, tc := range []struct {
name string name string
args string args string
@ -16,6 +26,7 @@ func TestCommand(t *testing.T) {
}{ }{
{ {
name: "default", name: "default",
exp: cmds[0],
}, },
} { } {
t.Run(tc.name, func(t *testing.T) { t.Run(tc.name, func(t *testing.T) {