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

Function test_select

lib_acl_cpp/samples/redis/redis_connection/redis_connection.cpp:69–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static bool test_select(acl::redis_connection& redis, int n)
70{
71 for (int i = 0; i < n; i++)
72 {
73 redis.clear();
74 if (redis.select(i % 2) == false)
75 {
76 printf("select %d error: %s\r\n",
77 i % 2, redis.result_error());
78 return false;
79 }
80 else if (i < 10)
81 printf("select %d ok\r\n", i % 2);
82 }
83 return true;
84}
85
86static void usage(const char* procname)
87{

Callers 1

mainFunction · 0.70

Calls 3

selectMethod · 0.80
result_errorMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…