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

Method IsSuperset

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

IsSuperset returns true if and only if s1 is a superset of s2.

(s2 String)

Source from the content-addressed store, hash-verified

143
144// IsSuperset returns true if and only if s1 is a superset of s2.
145func (s1 String) IsSuperset(s2 String) bool {
146 for item := range s2 {
147 if !s1.Has(item) {
148 return false
149 }
150 }
151 return true
152}
153
154// Equal returns true if and only if s1 is equal (as a set) to s2.
155// Two sets are equal if their membership is identical.

Callers 1

EqualMethod · 0.95

Calls 1

HasMethod · 0.95

Tested by

no test coverage detected