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

Function test_qlen

lib_acl_cpp/samples/disque/disque_pool/disque_pool.cpp:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static bool test_qlen(acl::disque& cmd, int i)
86{
87 cmd.clear();
88 int ret = cmd.qlen(__queue.c_str());
89 if (ret < 0)
90 {
91 printf("qlen queue: %s error: %s\r\n",
92 __queue.c_str(), cmd.result_error());
93 return false;
94 }
95 else if (i < 10)
96 printf("qlen: %d, queue: %s\r\n", ret, __queue.c_str());
97
98 return true;
99}
100
101static bool test_qpeek(acl::disque& cmd, int i)
102{

Callers 1

runMethod · 0.70

Calls 4

result_errorMethod · 0.80
clearMethod · 0.45
qlenMethod · 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…