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

Method Iter

tools/stringset.go:138–148  ·  view source on GitHub ↗

Iter() returns a channel of type string that you can range over.

()

Source from the content-addressed store, hash-verified

136
137// Iter() returns a channel of type string that you can range over.
138func (set StringSet) Iter() <-chan string {
139 ch := make(chan string)
140 go func() {
141 for elem := range set {
142 ch <- elem
143 }
144 close(ch)
145 }()
146
147 return ch
148}
149
150// Equal determines if two sets are equal to each other.
151// If they both are the same size and have the same items they are considered equal.

Callers 8

TestOrderedSetUnionFunction · 0.45
TestOrderedSetIntersectFunction · 0.45
TestOrderedSetDifferenceFunction · 0.45
TestOrderedSetIterFunction · 0.45
TestOrderedSetCloneFunction · 0.45
trackedToBlobFunction · 0.45

Calls

no outgoing calls

Tested by 6

TestOrderedSetUnionFunction · 0.36
TestOrderedSetIntersectFunction · 0.36
TestOrderedSetDifferenceFunction · 0.36
TestOrderedSetIterFunction · 0.36
TestOrderedSetCloneFunction · 0.36