(t *testing.T)
| 18 | } |
| 19 | |
| 20 | func TestArgsMaxNotSet(t *testing.T) { |
| 21 | arg := &StringArgs{ |
| 22 | Name: "sa", |
| 23 | Value: "foo", |
| 24 | } |
| 25 | |
| 26 | cmd := buildMinimalTestCommand() |
| 27 | cmd.Arguments = []Argument{arg} |
| 28 | |
| 29 | err := cmd.Run(buildTestContext(t), []string{"foo", "bar"}) |
| 30 | require.ErrorContains(t, err, "args sa has max 0, not parsing argument") |
| 31 | } |
| 32 | |
| 33 | func TestArgsMinGtMax(t *testing.T) { |
| 34 | arg := &StringArgs{ |
nothing calls this directly
no test coverage detected