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

Method load

src/tests/containerizer/provisioner_appc_tests.cpp:635–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633 imagesDirName("server") {}
634
635 void load()
636 {
637 const string imagesDir = path::join(os::getcwd(), imagesDirName);
638
639 Try<list<string>> imageBundles = os::ls(imagesDir);
640 ASSERT_SOME(imageBundles);
641
642 foreach (const string& imageName, imageBundles.get()) {
643 route("/" + imageName, None(), &TestAppcImageServer::serveRequest);
644 }
645 }
646
647 Future<http::Response> serveRequest(const http::Request& request)
648 {

Callers 7

TEST_PFunction · 0.45
approvedMethod · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
TEST_FFunction · 0.45
mainFunction · 0.45
TEST_FFunction · 0.45

Calls 3

joinFunction · 0.50
getcwdFunction · 0.50
lsFunction · 0.50

Tested by

no test coverage detected