MCPcopy Create free account
hub / github.com/coinbase/cb-mpc / outer_func

Function outer_func

tests/unit/core/test_error.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12error_t inner_func() { return coinbase::error(E_BADARG, "inner error msg"); }
13
14error_t outer_func() {
15 error_t rv = UNINITIALIZED_ERROR;
16 if (rv = inner_func()) return coinbase::error(rv, "outer error msg", false);
17 return SUCCESS;
18}
19
20TEST(ErrorTest, TestErrorLogsWithCallback) {
21 coinbase::set_test_error_storing_mode(true);

Callers 1

TESTFunction · 0.85

Calls 2

inner_funcFunction · 0.85
errorFunction · 0.50

Tested by

no test coverage detected