MCPcopy
hub / github.com/spf13/pflag / setUpS2I64FlagSet

Function setUpS2I64FlagSet

string_to_int64_test.go:14–18  ·  view source on GitHub ↗
(s2ip *map[string]int64)

Source from the content-addressed store, hash-verified

12)
13
14func setUpS2I64FlagSet(s2ip *map[string]int64) *FlagSet {
15 f := NewFlagSet("test", ContinueOnError)
16 f.StringToInt64Var(s2ip, "s2i", map[string]int64{}, "Command separated ls2it!")
17 return f
18}
19
20func setUpS2I64FlagSetWithDefault(s2ip *map[string]int64) *FlagSet {
21 f := NewFlagSet("test", ContinueOnError)

Callers 3

TestEmptyS2I64Function · 0.85
TestS2I64Function · 0.85
TestS2I64CalledTwiceFunction · 0.85

Calls 2

StringToInt64VarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected