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

Function isErrMatch

test/api/APIUnitTest.cpp:459–461  ·  view source on GitHub ↗

Helper function to check error code.

Source from the content-addressed store, hash-verified

457
458// Helper function to check error code.
459bool isErrMatch(WasmEdge_ErrCode Err, WasmEdge_Result Res) {
460 return static_cast<uint32_t>(Err) == WasmEdge_ResultGetCode(Res);
461}
462bool isErrMatch(WasmEdge_ErrCategory ErrCate, uint32_t Code,
463 WasmEdge_Result Res) {
464 return ErrCate == WasmEdge_ResultGetCategory(Res) &&

Callers 1

TESTFunction · 0.85

Calls 1

WasmEdge_ResultGetCodeFunction · 0.85

Tested by

no test coverage detected