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

Function testCaseSetup_2

lib/cpp/test/DebugProtoTest.cpp:92–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90static ::std::shared_ptr<Nesting> n;
91
92void testCaseSetup_2() {
93 using apache::thrift::TUuid;
94
95 testCaseSetup_1();
96
97 n.reset(new Nesting);
98 n->my_ooe = *ooe;
99 n->my_ooe.integer16 = 16;
100 n->my_ooe.integer32 = 32;
101 n->my_ooe.integer64 = 64;
102 n->my_ooe.double_precision = (std::sqrt(5.0) + 1) / 2;
103 n->my_ooe.some_characters = ":R (me going \"rrrr\")";
104 n->my_ooe.zomg_unicode = "\xd3\x80\xe2\x85\xae\xce\x9d\x20\xd0\x9d\xce"
105 "\xbf\xe2\x85\xbf\xd0\xbe\xc9\xa1\xd0\xb3\xd0"
106 "\xb0\xcf\x81\xe2\x84\x8e\x20\xce\x91\x74\x74"
107 "\xce\xb1\xe2\x85\xbd\xce\xba\xc7\x83\xe2\x80"
108 "\xbc";
109 n->my_ooe.rfc4122_uuid = TUuid{"{5e2ab188-1726-4e75-a04f-1ed9a6a89c4c}"};
110 n->my_bonk.type = 31337;
111 n->my_bonk.message = "I am a bonk... xor!";
112
113 std::vector<TUuid> uuiid_list;
114 uuiid_list.push_back(TUuid{"{fa1af5ec-fdc2-4355-844a-9f0dbfd00e50}"});
115 uuiid_list.push_back(TUuid{"{1beece83-34f4-4fa3-b757-1ad1ac157fe3}"});
116 n->my_ooe.rfc4122_uuid_list = uuiid_list;
117}
118
119BOOST_AUTO_TEST_CASE(test_debug_proto_2) {
120 testCaseSetup_2();

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.70
testCaseSetup_3Function · 0.70

Calls 2

testCaseSetup_1Function · 0.70
resetMethod · 0.45

Tested by

no test coverage detected