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

Function test_echo

lib_acl_cpp/samples/redis/redis_connection/redis_connection.cpp:18–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18static 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
38static bool test_ping(acl::redis_connection& redis, int n)
39{

Callers 1

mainFunction · 0.85

Calls 4

result_errorMethod · 0.80
clearMethod · 0.45
echoMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…