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

Function setUpCount

count_test.go:8–12  ·  view source on GitHub ↗
(c *int)

Source from the content-addressed store, hash-verified

6)
7
8func setUpCount(c *int) *FlagSet {
9 f := NewFlagSet("test", ContinueOnError)
10 f.CountVarP(c, "verbose", "v", "a counter")
11 return f
12}
13
14func TestCount(t *testing.T) {
15 testCases := []struct {

Callers 1

TestCountFunction · 0.85

Calls 2

CountVarPMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected