MCPcopy Create free account
hub / github.com/Tencent/phxqueue / CheckConsumerConfig

Method CheckConsumerConfig

phxqueue/test/check_config.cpp:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213
214void CheckConfig::CheckConsumerConfig(const int topic_id, const config::ConsumerConfig *consumer_config) {
215
216 std::vector<std::shared_ptr<const config::proto::Consumer>> consumers;
217
218 PHX_ASSERT(phxqueue::comm::as_integer(comm::RetCode::RET_OK), ==, phxqueue::comm::as_integer(consumer_config->GetAllConsumer(consumers)));
219
220 for (auto &&consumer : consumers) {
221 std::shared_ptr<const config::proto::Consumer> tmp_consumer;
222 PHX_ASSERT(phxqueue::comm::as_integer(comm::RetCode::RET_OK), ==, phxqueue::comm::as_integer(consumer_config->GetConsumerByAddr(consumer->addr(), tmp_consumer)));
223 }
224}
225
226void CheckConfig::CheckStoreConfig(const int topic_id, const config::StoreConfig *store_config) {
227

Callers

nothing calls this directly

Calls 3

as_integerFunction · 0.85
GetAllConsumerMethod · 0.80
GetConsumerByAddrMethod · 0.80

Tested by

no test coverage detected