MCPcopy Create free account
hub / github.com/defold/defold / TEST_P

Function TEST_P

engine/dlib/src/test/test_httpclient.cpp:520–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518#endif
519
520TEST_P(dmHttpClientTest, Simple)
521{
522 char buf[128];
523
524 for (int i = 0; i < NUM_ITERATIONS; ++i)
525 {
526 dmSnPrintf(buf, sizeof(buf), "/add/%d/1000", i);
527 dmHttpClient::Result r = HttpGet(buf);
528 ASSERT_EQ(dmHttpClient::RESULT_OK, r);
529 ASSERT_EQ(1000 + i, strtol(m_Content.c_str(), 0, 10));
530 }
531}
532
533struct HttpStressHelper
534{

Callers

nothing calls this directly

Calls 15

dmSnPrintfFunction · 0.85
ShutdownConnectionPoolFunction · 0.85
ReopenConnectionPoolFunction · 0.85
SetOptionIntFunction · 0.85
GetLastSocketResultFunction · 0.85
dmAtomicGet32Function · 0.85
randClass · 0.85
GetStatisticsFunction · 0.85
EncodeFunction · 0.85
GetNumPoolConnectionsFunction · 0.85
MakeHostPathFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected