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

Function TestUintFlagValueFromCommand

flag_test.go:952–961  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

950}
951
952func TestUintFlagValueFromCommand(t *testing.T) {
953 fl := &Uint64Flag{Name: "myflag"}
954 cmd := &Command{
955 Flags: []Flag{
956 fl,
957 },
958 }
959 require.NoError(t, cmd.Set("myflag", "42"))
960 require.Equal(t, uint64(42), cmd.Uint64(fl.Name))
961}
962
963var uint64FlagTests = []struct {
964 name string

Callers

nothing calls this directly

Calls 2

SetMethod · 0.95
Uint64Method · 0.95

Tested by

no test coverage detected