MCPcopy Create free account
hub / github.com/acl-dev/acl / test_ping

Function test_ping

lib_acl_cpp/samples/redis/redis_connection/redis_connection.cpp:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static bool test_ping(acl::redis_connection& redis, int n)
39{
40 for (int i = 0; i < n; i++)
41 {
42 redis.clear();
43 if (redis.ping() == false)
44 {
45 printf("ping failed: %s\r\n", redis.result_error());
46 return false;
47 }
48 else if (i < 10)
49 printf("ping ok\r\n");
50 }
51 return true;
52}
53
54static bool test_quit(acl::redis_connection& redis)
55{

Callers 1

mainFunction · 0.85

Calls 3

result_errorMethod · 0.80
clearMethod · 0.45
pingMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…