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

Function testCaseSetup_3

lib/cpp/test/DebugProtoTest.cpp:182–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180static ::std::shared_ptr<HolyMoley> hm;
181
182void testCaseSetup_3() {
183 testCaseSetup_2();
184
185 hm.reset(new HolyMoley);
186
187 hm->big.push_back(*ooe);
188 hm->big.push_back(n->my_ooe);
189 hm->big[0].a_bite = 0x22;
190 hm->big[1].a_bite = 0x33;
191
192 std::vector<std::string> stage1;
193 stage1.push_back("and a one");
194 stage1.push_back("and a two");
195 hm->contain.insert(stage1);
196 stage1.clear();
197 stage1.push_back("then a one, two");
198 stage1.push_back("three!");
199 stage1.push_back("FOUR!!");
200 hm->contain.insert(stage1);
201 stage1.clear();
202 hm->contain.insert(stage1);
203
204 std::vector<Bonk> stage2;
205 hm->bonks["nothing"] = stage2;
206 stage2.resize(stage2.size() + 1);
207 stage2.back().type = 1;
208 stage2.back().message = "Wait.";
209 stage2.resize(stage2.size() + 1);
210 stage2.back().type = 2;
211 stage2.back().message = "What?";
212 hm->bonks["something"] = stage2;
213 stage2.clear();
214 stage2.resize(stage2.size() + 1);
215 stage2.back().type = 3;
216 stage2.back().message = "quoth";
217 stage2.resize(stage2.size() + 1);
218 stage2.back().type = 4;
219 stage2.back().message = "the raven";
220 stage2.resize(stage2.size() + 1);
221 stage2.back().type = 5;
222 stage2.back().message = "nevermore";
223 hm->bonks["poe"] = stage2;
224}
225
226BOOST_AUTO_TEST_CASE(test_debug_proto_3) {
227 testCaseSetup_3();

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 4

testCaseSetup_2Function · 0.70
clearMethod · 0.65
resetMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected