MCPcopy Create free account
hub / github.com/apache/mesos / foreach

Function foreach

src/tests/containerizer/rootfs.cpp:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 };
144
145 foreach (const string& program, programs) {
146 Try<hashset<string>> dependencies = ldd(program, cache.get());
147 if (dependencies.isError()) {
148 return Error(
149 "Failed to find dependencies for '" + program + "': " +
150 dependencies.error());
151 }
152
153 files |= dependencies.get();
154 files.insert(program);
155 }
156
157 foreach (const string& file, files) {
158 Try<Nothing> result = rootfs->add(file);

Callers

nothing calls this directly

Calls 9

lddFunction · 0.85
insertMethod · 0.80
errorMethod · 0.65
ErrorFunction · 0.50
mkdirFunction · 0.50
joinFunction · 0.50
getMethod · 0.45
isErrorMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected