MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / error

Function error

test/expected/issues.cpp:63–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static cxx20::expected<int, std::string> error() {
64 return cxx20::unexpected(std::string("error1 "));
65}
66static std::string maperror(std::string s) { return s + "maperror "; }
67
68TEST(RegressionTest, Issue30) { error().map_error(maperror); }

Callers 15

TESTFunction · 0.70
getDefaultPluginPathsMethod · 0.50
bodyMethod · 0.50
initMethod · 0.50
initWithFdsMethod · 0.50
createStdNodeFunction · 0.50
getWindowsHandleFunction · 0.50
readMethod · 0.50
writeMethod · 0.50
IFStreamMethod · 0.50
OFStreamMethod · 0.50

Calls 1

unexpectedClass · 0.85

Tested by 1

stringContainsMethod · 0.40