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

Function BOOST_AUTO_TEST_CASE

lib/cpp/test/OptionalRequiredTest.cpp:60–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60BOOST_AUTO_TEST_CASE(test_optional_required_1) {
61 OldSchool o;
62
63 const std::string expected_result(
64 "OldSchool {\n"
65 " 01: im_int (i16) = 0,\n"
66 " 02: im_str (string) = \"\",\n"
67 " 03: im_big (list) = list<map>[0] {\n"
68 " },\n"
69 "}");
70 const std::string result(apache::thrift::ThriftDebugString(o));
71
72 BOOST_CHECK_MESSAGE(!expected_result.compare(result),
73 "Expected:\n" << expected_result << "\nGotten:\n" << result);
74}
75
76BOOST_AUTO_TEST_CASE(test_optional_required_2_1) {
77 Simple s;

Callers

nothing calls this directly

Calls 5

ThriftDebugStringFunction · 0.85
write_to_readFunction · 0.70
writeMethod · 0.65
readMethod · 0.65
compareMethod · 0.45

Tested by

no test coverage detected