(t *testing.T)
| 2016 | } |
| 2017 | |
| 2018 | func TestParseMultiInt(t *testing.T) { |
| 2019 | _ = (&Command{ |
| 2020 | Flags: []Flag{ |
| 2021 | &Int64Flag{Name: "serve", Aliases: []string{"s"}}, |
| 2022 | }, |
| 2023 | Action: func(_ context.Context, cmd *Command) error { |
| 2024 | assert.Equal(t, int64(10), cmd.Int64("serve"), "main name not set") |
| 2025 | assert.Equal(t, int64(10), cmd.Int64("s"), "short name not set") |
| 2026 | return nil |
| 2027 | }, |
| 2028 | }).Run(buildTestContext(t), []string{"run", "-s", "10"}) |
| 2029 | } |
| 2030 | |
| 2031 | func TestParseDestinationInt(t *testing.T) { |
| 2032 | var dest int64 |
nothing calls this directly
no test coverage detected