| 388 | } |
| 389 | |
| 390 | void 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 | |
| 405 | void TestGetStats(Client* client) { |
| 406 | GetStatsRequest req; |