| 256 | } |
| 257 | |
| 258 | void testInsanity(map<UserId, map<Numberz::type, Insanity> >& insane, const Insanity& argument) override { |
| 259 | printf("testInsanity()\n"); |
| 260 | |
| 261 | Insanity looney; |
| 262 | map<Numberz::type, Insanity> first_map; |
| 263 | map<Numberz::type, Insanity> second_map; |
| 264 | |
| 265 | first_map.insert(make_pair(Numberz::TWO, argument)); |
| 266 | first_map.insert(make_pair(Numberz::THREE, argument)); |
| 267 | |
| 268 | second_map.insert(make_pair(Numberz::SIX, looney)); |
| 269 | |
| 270 | insane.insert(make_pair(1, first_map)); |
| 271 | insane.insert(make_pair(2, second_map)); |
| 272 | |
| 273 | printf("return"); |
| 274 | printf(" = {"); |
| 275 | map<UserId, map<Numberz::type, Insanity> >::const_iterator i_iter; |
| 276 | for (i_iter = insane.begin(); i_iter != insane.end(); ++i_iter) { |
| 277 | printf("%" PRId64 " => {", i_iter->first); |
| 278 | map<Numberz::type, Insanity>::const_iterator i2_iter; |
| 279 | for (i2_iter = i_iter->second.begin(); i2_iter != i_iter->second.end(); ++i2_iter) { |
| 280 | printf("%d => {", i2_iter->first); |
| 281 | map<Numberz::type, UserId> userMap = i2_iter->second.userMap; |
| 282 | map<Numberz::type, UserId>::const_iterator um; |
| 283 | printf("{"); |
| 284 | for (um = userMap.begin(); um != userMap.end(); ++um) { |
| 285 | printf("%d => %" PRId64 ", ", um->first, um->second); |
| 286 | } |
| 287 | printf("}, "); |
| 288 | |
| 289 | vector<Xtruct> xtructs = i2_iter->second.xtructs; |
| 290 | vector<Xtruct>::const_iterator x; |
| 291 | printf("{"); |
| 292 | for (x = xtructs.begin(); x != xtructs.end(); ++x) { |
| 293 | printf("{\"%s\", %d, %d, %" PRId64 "}, ", |
| 294 | x->string_thing.c_str(), |
| 295 | (int)x->byte_thing, |
| 296 | x->i32_thing, |
| 297 | x->i64_thing); |
| 298 | } |
| 299 | printf("}"); |
| 300 | |
| 301 | printf("}, "); |
| 302 | } |
| 303 | printf("}, "); |
| 304 | } |
| 305 | printf("}\n"); |
| 306 | } |
| 307 | |
| 308 | void testMulti(Xtruct& hello, |
| 309 | const int8_t arg0, |
no test coverage detected