MCPcopy Create free account
hub / github.com/apache/fory / TEST_F

Function TEST_F

cpp/fory/util/error_test.cc:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28class ErrorTest : public ::testing::Test {};
29
30TEST_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
37TEST_F(ErrorTest, BasicError) {
38 Result<void, Error> err = Unexpected(Error::invalid("test error"));

Callers

nothing calls this directly

Calls 6

UnexpectedClass · 0.85
code_as_stringMethod · 0.80
errorMethod · 0.65
okMethod · 0.45
has_valueMethod · 0.45
codeMethod · 0.45

Tested by

no test coverage detected