| 16 | } |
| 17 | |
| 18 | static bool test_echo(acl::redis_connection& redis, int n) |
| 19 | { |
| 20 | acl::string buf("hello world!"); |
| 21 | |
| 22 | for (int i = 0; i < n; i++) |
| 23 | { |
| 24 | redis.clear(); |
| 25 | if (redis.echo(buf.c_str()) == false) |
| 26 | { |
| 27 | printf("echo error: %s\r\n", redis.result_error()); |
| 28 | return false; |
| 29 | } |
| 30 | else if (i >= 10) |
| 31 | continue; |
| 32 | |
| 33 | printf("echo ok\r\n"); |
| 34 | } |
| 35 | return true; |
| 36 | } |
| 37 | |
| 38 | static bool test_ping(acl::redis_connection& redis, int n) |
| 39 | { |
no test coverage detected
searching dependent graphs…