MCPcopy Index your code
hub / github.com/aptly-dev/aptly / ForEach

Method ForEach

deb/list.go:164–173  ·  view source on GitHub ↗

ForEach calls handler for each package in list

(handler func(*Package) error)

Source from the content-addressed store, hash-verified

162
163// ForEach calls handler for each package in list
164func (l *PackageList) ForEach(handler func(*Package) error) error {
165 var err error
166 for _, p := range l.packages {
167 err = handler(p)
168 if err != nil {
169 return err
170 }
171 }
172 return err
173}
174
175// FilterLatest creates a copy of the package list containing only the
176// latest version for each package name/architecture pair.

Callers 15

FilterLatestMethod · 0.95
TestForEachAndLenMethod · 0.45
TestForEachAndLenMethod · 0.45
TestForeachMethod · 0.45
FindDanglingReferencesFunction · 0.45
TestForEachAndLenMethod · 0.45
BuildGraphFunction · 0.45
TestForEachAndLenMethod · 0.45
aptlyPublishListTxtFunction · 0.45
aptlyPublishListJSONFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestForEachAndLenMethod · 0.36
TestForEachAndLenMethod · 0.36
TestForeachMethod · 0.36
TestForEachAndLenMethod · 0.36
TestForEachAndLenMethod · 0.36
SetUpTestMethod · 0.36