| 28 | class ErrorTest : public ::testing::Test {}; |
| 29 | |
| 30 | TEST_F(ErrorTest, BasicOK) { |
| 31 | Result<void, Error> ok; |
| 32 | ASSERT_TRUE(ok.ok()); |
| 33 | ASSERT_TRUE(ok.has_value()); |
| 34 | ASSERT_TRUE(static_cast<bool>(ok)); |
| 35 | } |
| 36 | |
| 37 | TEST_F(ErrorTest, BasicError) { |
| 38 | Result<void, Error> err = Unexpected(Error::invalid("test error")); |
nothing calls this directly
no test coverage detected