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

Function TEST

test/api/APIUnitTest.cpp:468–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468TEST(APICoreTest, Version) {
469 EXPECT_EQ(std::string_view(WASMEDGE_VERSION),
470 std::string_view(WasmEdge_VersionGet()));
471 EXPECT_EQ(static_cast<uint32_t>(WASMEDGE_VERSION_MAJOR),
472 WasmEdge_VersionGetMajor());
473 EXPECT_EQ(static_cast<uint32_t>(WASMEDGE_VERSION_MINOR),
474 WasmEdge_VersionGetMinor());
475 EXPECT_EQ(static_cast<uint32_t>(WASMEDGE_VERSION_PATCH),
476 WasmEdge_VersionGetPatch());
477}
478
479TEST(APICoreTest, Log) {
480 WasmEdge_LogSetCallback([](const WasmEdge_LogMessage *) {});

Callers

nothing calls this directly

Calls 15

WasmEdge_ValTypeIsRefFunction · 0.85
WasmEdge_ValTypeIsV128Function · 0.85
WasmEdge_ValueGetI32Function · 0.85
WasmEdge_ValueGetI64Function · 0.85
WasmEdge_ValueGetF32Function · 0.85
WasmEdge_ValueGetF64Function · 0.85
WasmEdge_ValueGetV128Function · 0.85
WasmEdge_ValueGetFuncRefFunction · 0.85

Tested by

no test coverage detected