| 67 | } |
| 68 | |
| 69 | static 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 | |
| 86 | static void usage(const char* procname) |
| 87 | { |
no test coverage detected
searching dependent graphs…