| 58 | } |
| 59 | |
| 60 | BOOST_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 | |
| 76 | BOOST_AUTO_TEST_CASE(test_optional_required_2_1) { |
| 77 | Simple s; |
nothing calls this directly
no test coverage detected