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

Function TEST_F

src/tests/uri_fetcher_tests.cpp:103–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102
103TEST_F(CurlFetcherPluginTest, CURL_ValidUri)
104{
105 URI uri = uri::http(
106 stringify(server.self().address.ip),
107 "/TestHttpServer/test",
108 server.self().address.port);
109
110 EXPECT_CALL(server, test(_))
111 .WillOnce(Return(http::OK("test")));
112
113 Try<Owned<uri::Fetcher>> fetcher = uri::fetcher::create();
114 ASSERT_SOME(fetcher);
115
116 AWAIT_READY(fetcher.get()->fetch(uri, os::getcwd()));
117
118 EXPECT_TRUE(os::exists(path::join(os::getcwd(), "test")));
119}
120
121
122TEST_F(CurlFetcherPluginTest, CURL_ValidUriWithOutputFileName)

Callers

nothing calls this directly

Calls 15

httpFunction · 0.85
testFunction · 0.85
OKClass · 0.85
NoneClass · 0.85
NotFoundClass · 0.85
hdfsFunction · 0.85
manifestFunction · 0.85
SecondsClass · 0.85
blobFunction · 0.85
imageFunction · 0.85
fileFunction · 0.85
failureMethod · 0.80

Tested by

no test coverage detected