MCPcopy Create free account
hub / github.com/alibaba/graph-learn / TestGetCount

Function TestGetCount

graphlearn/src/service/test/client_test.cpp:390–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void TestGetCount(Client* client) {
391 GetCountRequest req;
392 GetCountResponse res;
393 Status s = client->GetCount(&req, &res);
394 std::cout << "GetCount: " << s.ToString() << std::endl;
395 const int32_t* count = res.Count();
396 int i = 0;
397 for (; i < 4; ++i) {
398 std::cout << "edge count: " << count[i] << std::endl;
399 }
400 for (int j = 0; j < 4; ++j) {
401 std::cout << "node count: " << count[i+j] << std::endl;
402 }
403}
404
405void TestGetStats(Client* client) {
406 GetStatsRequest req;

Callers 1

mainFunction · 0.85

Calls 2

ToStringMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected