MCPcopy Create free account
hub / github.com/apache/thrift / testMap

Method testMap

test/cpp/src/TestServer.cpp:169–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 }
168
169 void testMap(map<int32_t, int32_t>& out, const map<int32_t, int32_t>& thing) override {
170 printf("testMap({");
171 map<int32_t, int32_t>::const_iterator m_iter;
172 bool first = true;
173 for (m_iter = thing.begin(); m_iter != thing.end(); ++m_iter) {
174 if (first) {
175 first = false;
176 } else {
177 printf(", ");
178 }
179 printf("%d => %d", m_iter->first, m_iter->second);
180 }
181 printf("})\n");
182 out = thing;
183 }
184
185 void testStringMap(map<std::string, std::string>& out,
186 const map<std::string, std::string>& thing) override {

Callers 2

testMapMethod · 0.45
mainFunction · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected