2024-10-29 07:22:04 +01:00
|
|
|
package command_test
|
2024-11-01 07:31:21 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
2024-11-06 07:29:29 +01:00
|
|
|
func TestParseArgs(t *testing.T) {
|
2024-11-01 07:31:21 +01:00
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
for _, tc := range []struct {
|
2024-11-06 07:29:29 +01:00
|
|
|
name string
|
|
|
|
args []string
|
|
|
|
expRem string
|
|
|
|
expFlags map[string]string
|
|
|
|
expErr bool
|
2024-11-01 07:31:21 +01:00
|
|
|
}{
|
|
|
|
{
|
2024-11-06 07:29:29 +01:00
|
|
|
name: "empty",
|
2024-11-01 07:31:21 +01:00
|
|
|
},
|
|
|
|
} {
|
|
|
|
t.Run(tc.name, func(t *testing.T) {
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|