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

Function testCaseSetup_3

lib/cpp/test/JSONProtoTest.cpp:121–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119static std::shared_ptr<HolyMoley> hm;
120
121void 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
165BOOST_AUTO_TEST_CASE(test_json_proto_3) {
166 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