Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
8
func
setUpCount(c *int) *FlagSet {
9
f := NewFlagSet(
"test"
, ContinueOnError)
10
f.CountVarP(c,
"verbose"
,
"v"
,
"a counter"
)
11
return
f
12
}
13
14
func
TestCount(t *testing.T) {
15
testCases := []
struct
{
Callers
1
TestCount
Function · 0.85
Calls
2
CountVarP
Method · 0.95
NewFlagSet
Function · 0.85
Tested by
no test coverage detected