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

Function testCaseSetup_1

lib/cpp/test/JSONProtoTest.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37static std::shared_ptr<OneOfEach> ooe;
38
39void testCaseSetup_1() {
40 ooe.reset(new OneOfEach);
41 ooe->im_true = true;
42 ooe->im_false = false;
43 ooe->a_bite = 0x7f;
44 ooe->integer16 = 27000;
45 ooe->integer32 = 1 << 24;
46 ooe->integer64 = (uint64_t)6000 * 1000 * 1000;
47 ooe->double_precision = M_PI;
48 ooe->some_characters = "JSON THIS! \"\1";
49 ooe->zomg_unicode = "\xd7\n\a\t";
50 ooe->base64 = "\1\2\3\255";
51 ooe->rfc4122_uuid = apache::thrift::TUuid{"00000000-0000-0000-0000-000000000000"};
52}
53
54BOOST_AUTO_TEST_CASE(test_json_proto_1) {
55 testCaseSetup_1();

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.70
testCaseSetup_2Function · 0.70

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected