MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / Contains

Method Contains

tools/ordered_set.go:53–58  ·  view source on GitHub ↗

Contains returns whether or not the given "i" is contained in this ordered set. It is a constant-time operation.

(i string)

Source from the content-addressed store, hash-verified

51// Contains returns whether or not the given "i" is contained in this ordered
52// set. It is a constant-time operation.
53func (s *OrderedSet) Contains(i string) bool {
54 if _, ok := s.m[i]; ok {
55 return true
56 }
57 return false
58}
59
60// ContainsAll returns whether or not all of the given items in "i" are present
61// in the ordered set.

Callers 3

ContainsAllMethod · 0.95
IsSubsetMethod · 0.95
IntersectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected