MCPcopy Create free account
hub / github.com/chen3feng/toft / TEST_F

Function TEST_F

net/http/client_test.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23TEST_F(HttpClientTest, GetWithBadURI)
24{
25 HttpClient client;
26 HttpResponse response;
27 HttpClient::ErrorCode error;
28 std::string bad_uri = "http://-www.qq.com";
29 EXPECT_FALSE(client.Get(bad_uri, &response, &error));
30 EXPECT_EQ(HttpClient::ERROR_INVALID_URI_ADDRESS, error);
31}
32
33TEST_F(HttpClientTest, GetWithBadProxy)
34{

Callers

nothing calls this directly

Calls 8

AddHeaderMethod · 0.80
StatusMethod · 0.80
GetErrorMessageMethod · 0.80
PostMethod · 0.80
GetMethod · 0.45
emptyMethod · 0.45
PutMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected