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

Function createGlobalSec

test/loader/serializeTypeTest.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45WasmEdge::AST::GlobalSection
46createGlobalSec(WasmEdge::AST::GlobalType GlobalType) {
47 WasmEdge::AST::GlobalSection GlobalSec;
48 WasmEdge::AST::GlobalSegment GlobalSeg;
49 GlobalSeg.getGlobalType() = GlobalType;
50 GlobalSeg.getExpr().getInstrs() = {
51 WasmEdge::AST::Instruction(WasmEdge::OpCode::End)};
52 GlobalSec.getContent() = {GlobalSeg};
53 return GlobalSec;
54}
55
56TEST(serializeTypeTest, SerializeFunctionType) {
57 WasmEdge::Configure ConfWASM1;

Callers 1

TESTFunction · 0.85

Calls 3

InstructionClass · 0.85
getInstrsMethod · 0.45
getContentMethod · 0.45

Tested by

no test coverage detected