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

Function test_append

lib_acl_cpp/samples/redis/redis_string/redis_string.cpp:79–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static bool test_append(acl::redis_string& redis, int n)
80{
81 acl::string key;
82 acl::string value;
83
84 for (int i = 0; i < n; i++)
85 {
86 key.format("%s_%d", __keypre.c_str(), i);
87 value.format("_append_%d", i);
88
89 redis.clear();
90 if (redis.append(key.c_str(), value.c_str()) < 0)
91 {
92 printf("append key: %s\r\n", key.c_str());
93 return false;
94 }
95 }
96
97 return true;
98}
99
100static bool test_get(acl::redis_string& redis, int n)
101{

Callers 1

mainFunction · 0.70

Calls 4

formatMethod · 0.45
c_strMethod · 0.45
clearMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…