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

Function compute_error

cpp/fory/util/result_test.cc:236–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234Result<int, Error> compute_ok() { return 42; }
235
236Result<int, Error> compute_error() {
237 return Unexpected(Error::invalid("computation failed"));
238}
239
240TEST_F(ResultTest, ReturnNotOkMacro) {
241 auto test_fn = []() -> Result<void, Error> {

Callers 1

TEST_FFunction · 0.85

Calls 1

UnexpectedClass · 0.85

Tested by

no test coverage detected