(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func TestArgsMinGtMax(t *testing.T) { |
| 34 | arg := &StringArgs{ |
| 35 | Name: "sa", |
| 36 | Value: "foo", |
| 37 | Min: 2, |
| 38 | Max: 1, |
| 39 | } |
| 40 | |
| 41 | cmd := buildMinimalTestCommand() |
| 42 | cmd.Arguments = []Argument{arg} |
| 43 | |
| 44 | err := cmd.Run(buildTestContext(t), []string{"foo", "bar"}) |
| 45 | require.ErrorContains(t, err, "args sa has min[2] > max[1], not parsing argument") |
| 46 | } |
| 47 | |
| 48 | func TestArgsFloatTypes(t *testing.T) { |
| 49 | cmd := buildMinimalTestCommand() |
nothing calls this directly
no test coverage detected