MCPcopy
hub / github.com/urfave/cli / TestCommand_Uint

Function TestCommand_Uint

command_test.go:4072–4093  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

4070}
4071
4072func TestCommand_Uint(t *testing.T) {
4073 pCmd := &Command{
4074 Flags: []Flag{
4075 &Uint64Flag{
4076 Name: "myflagUint",
4077 Value: 13,
4078 },
4079 },
4080 }
4081 cmd := &Command{
4082 Flags: []Flag{
4083 &Uint64Flag{
4084 Name: "top-flag",
4085 Value: 14,
4086 },
4087 },
4088 parent: pCmd,
4089 }
4090
4091 require.Equal(t, uint64(13), cmd.Uint64("myflagUint"))
4092 require.Equal(t, uint64(14), cmd.Uint64("top-flag"))
4093}
4094
4095func TestCommand_Float64(t *testing.T) {
4096 pCmd := &Command{

Callers

nothing calls this directly

Calls 1

Uint64Method · 0.95

Tested by

no test coverage detected