| 20 | #include "gtest/gtest.h" |
| 21 | |
| 22 | TEST(error_message_test, optional_with_value) { |
| 23 | std::optional<int> value = 42; |
| 24 | std::string msg = common::ErrorMessage("value=", value).to_string(); |
| 25 | EXPECT_EQ(msg, "value=42"); |
| 26 | } |
| 27 | |
| 28 | TEST(error_message_test, optional_without_value) { |
| 29 | std::optional<int> value = std::nullopt; |
nothing calls this directly
no test coverage detected