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

Function logSandbox

src/tests/fetcher_cache_tests.cpp:244–257  ·  view source on GitHub ↗

Dumps the contents of all files in the sandbox to cout, assuming there are only text files.

Source from the content-addressed store, hash-verified

242// Dumps the contents of all files in the sandbox to cout, assuming
243// there are only text files.
244static void logSandbox(const Path& path)
245{
246 Try<list<string>> entries = os::ls(path.string());
247 if (entries.isSome()) {
248 cout << "Begin listing sandbox `" << path.string() << "`:" << endl;
249 foreach (const string& entry, entries.get()) {
250 logFile(path, entry);
251 }
252 cout << "End sandbox" << endl;
253 } else {
254 cout << "Could not list sandbox `" << path.string()
255 << "`: " << entries.error() << endl;
256 }
257}
258
259
260void FetcherCacheTest::verifyCacheMetrics()

Callers 1

foreachFunction · 0.85

Calls 4

errorMethod · 0.65
lsFunction · 0.50
stringMethod · 0.45
isSomeMethod · 0.45

Tested by

no test coverage detected