| 53 | |
| 54 | template <typename T> |
| 55 | void CheckStream(const T& obj, const PrettyPrintOptions& options, |
| 56 | std::string_view expected) { |
| 57 | std::ostringstream sink; |
| 58 | ASSERT_OK(PrettyPrint(obj, options, &sink)); |
| 59 | std::string result = sink.str(); |
| 60 | ASSERT_EQ(expected, result); |
| 61 | } |
| 62 | |
| 63 | void CheckArray(const Array& arr, const PrettyPrintOptions& options, |
| 64 | std::string_view expected, bool check_operator = true) { |
no test coverage detected