MCPcopy Create free account
hub / github.com/docopt/docopt.go / count

Method count

docopt.go:1166–1174  ·  view source on GitHub ↗
(p *pattern)

Source from the content-addressed store, hash-verified

1164}
1165
1166func (pl patternList) count(p *pattern) int {
1167 count := 0
1168 for _, c := range pl {
1169 if c.eq(p) {
1170 count++
1171 }
1172 }
1173 return count
1174}
1175
1176func (pl patternList) diff(l patternList) patternList {
1177 lAlt := make(patternList, len(l))

Callers 1

fixRepeatingArgumentsMethod · 0.80

Calls 1

eqMethod · 0.45

Tested by

no test coverage detected