| 119 | static std::shared_ptr<HolyMoley> hm; |
| 120 | |
| 121 | void testCaseSetup_3() { |
| 122 | testCaseSetup_2(); |
| 123 | |
| 124 | hm.reset(new HolyMoley); |
| 125 | |
| 126 | hm->big.push_back(*ooe); |
| 127 | hm->big.push_back(n->my_ooe); |
| 128 | hm->big[0].a_bite = 0x22; |
| 129 | hm->big[1].a_bite = 0x33; |
| 130 | |
| 131 | std::vector<std::string> stage1; |
| 132 | stage1.push_back("and a one"); |
| 133 | stage1.push_back("and a two"); |
| 134 | hm->contain.insert(stage1); |
| 135 | stage1.clear(); |
| 136 | stage1.push_back("then a one, two"); |
| 137 | stage1.push_back("three!"); |
| 138 | stage1.push_back("FOUR!!"); |
| 139 | hm->contain.insert(stage1); |
| 140 | stage1.clear(); |
| 141 | hm->contain.insert(stage1); |
| 142 | |
| 143 | std::vector<Bonk> stage2; |
| 144 | hm->bonks["nothing"] = stage2; |
| 145 | stage2.resize(stage2.size() + 1); |
| 146 | stage2.back().type = 1; |
| 147 | stage2.back().message = "Wait."; |
| 148 | stage2.resize(stage2.size() + 1); |
| 149 | stage2.back().type = 2; |
| 150 | stage2.back().message = "What?"; |
| 151 | hm->bonks["something"] = stage2; |
| 152 | stage2.clear(); |
| 153 | stage2.resize(stage2.size() + 1); |
| 154 | stage2.back().type = 3; |
| 155 | stage2.back().message = "quoth"; |
| 156 | stage2.resize(stage2.size() + 1); |
| 157 | stage2.back().type = 4; |
| 158 | stage2.back().message = "the raven"; |
| 159 | stage2.resize(stage2.size() + 1); |
| 160 | stage2.back().type = 5; |
| 161 | stage2.back().message = "nevermore"; |
| 162 | hm->bonks["poe"] = stage2; |
| 163 | } |
| 164 | |
| 165 | BOOST_AUTO_TEST_CASE(test_json_proto_3) { |
| 166 | testCaseSetup_3(); |
no test coverage detected