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

Method testMapMap

test/cpp/src/TestServer.cpp:244–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 }
243
244 void testMapMap(map<int32_t, map<int32_t, int32_t> >& mapmap, const int32_t hello) override {
245 printf("testMapMap(%d)\n", hello);
246
247 map<int32_t, int32_t> pos;
248 map<int32_t, int32_t> neg;
249 for (int i = 1; i < 5; i++) {
250 pos.insert(make_pair(i, i));
251 neg.insert(make_pair(-i, -i));
252 }
253
254 mapmap.insert(make_pair(4, pos));
255 mapmap.insert(make_pair(-4, neg));
256 }
257
258 void testInsanity(map<UserId, map<Numberz::type, Insanity> >& insane, const Insanity& argument) override {
259 printf("testInsanity()\n");

Callers 2

testMapMapMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected