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

Method testStringMap

test/cpp/src/TestServer.cpp:185–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 }
184
185 void testStringMap(map<std::string, std::string>& out,
186 const map<std::string, std::string>& thing) override {
187 printf("testMap({");
188 map<std::string, std::string>::const_iterator m_iter;
189 bool first = true;
190 for (m_iter = thing.begin(); m_iter != thing.end(); ++m_iter) {
191 if (first) {
192 first = false;
193 } else {
194 printf(", ");
195 }
196 printf("%s => %s", (m_iter->first).c_str(), (m_iter->second).c_str());
197 }
198 printf("})\n");
199 out = thing;
200 }
201
202 void testSet(set<int32_t>& out, const set<int32_t>& thing) override {
203 printf("testSet({");

Callers 2

testStringMapMethod · 0.45
mainFunction · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected