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

Method HasAll

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

HasAll returns true if and only if all items are contained in the set.

(items ...string)

Source from the content-addressed store, hash-verified

67
68// HasAll returns true if and only if all items are contained in the set.
69func (s String) HasAll(items ...string) bool {
70 for _, item := range items {
71 if !s.Has(item) {
72 return false
73 }
74 }
75 return true
76}
77
78// HasAny returns true if any items are contained in the set.
79func (s String) HasAny(items ...string) bool {

Callers

nothing calls this directly

Calls 1

HasMethod · 0.95

Tested by

no test coverage detected