MCPcopy
hub / github.com/mislav/hub / HasReceived

Method HasReceived

utils/args_parser.go:181–184  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

179}
180
181func (p *ArgsParser) HasReceived(name string) bool {
182 f, found := p.flagMap[name]
183 return found && len(f.values) > 0
184}
185
186func NewArgsParser() *ArgsParser {
187 return &ArgsParser{

Callers 15

TestArgsParserFunction · 0.95
TestArgsParser_BoolFunction · 0.95
TestArgsParser_BoolValueFunction · 0.95
TestArgsParser_IntFunction · 0.95
listReleasesFunction · 0.80
showReleaseFunction · 0.80
downloadReleaseFunction · 0.80
createReleaseFunction · 0.80
editReleaseFunction · 0.80
apiCommandFunction · 0.80
listPullsFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestArgsParserFunction · 0.76
TestArgsParser_BoolFunction · 0.76
TestArgsParser_BoolValueFunction · 0.76
TestArgsParser_IntFunction · 0.76