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

Function test_exists

lib_acl_cpp/samples/redis/redis_ssl/redis.cpp:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static bool test_exists(acl::redis& cmd, int n)
102{
103 acl::string key;
104
105 for (int i = 0; i < n; i++) {
106 key.format("%s_%d", __keypre.c_str(), i);
107 cmd.clear();
108 if (cmd.exists(key.c_str()) == false) {
109 if (i < 10)
110 printf("no exists key: %s\r\n", key.c_str());
111 } else if (i < 10)
112 printf("exists key: %s\r\n", key.c_str());
113 }
114
115 return true;
116}
117
118static bool test_type(acl::redis& cmd, int n)
119{

Callers 1

mainFunction · 0.70

Calls 4

existsMethod · 0.80
formatMethod · 0.45
c_strMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…