MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / Has

Method Has

pkg/funclet/runtime/cgroup/string.go:63–66  ·  view source on GitHub ↗

Has returns true if and only if item is contained in the set.

(item string)

Source from the content-addressed store, hash-verified

61
62// Has returns true if and only if item is contained in the set.
63func (s String) Has(item string) bool {
64 _, contained := s[item]
65 return contained
66}
67
68// HasAll returns true if and only if all items are contained in the set.
69func (s String) HasAll(items ...string) bool {

Callers 6

HasAllMethod · 0.95
HasAnyMethod · 0.95
IntersectionMethod · 0.95
IsSupersetMethod · 0.95
ExistsMethod · 0.95
DifferenceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected