| 36 | } |
| 37 | |
| 38 | static 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 | |
| 54 | static bool test_quit(acl::redis_connection& redis) |
| 55 | { |
no test coverage detected
searching dependent graphs…