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

Function createCodeSec

test/loader/serializeInstructionTest.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13WasmEdge::Loader::Serializer Ser(Conf);
14
15WasmEdge::AST::CodeSection
16createCodeSec(std::vector<WasmEdge::AST::Instruction> Instructions) {
17 WasmEdge::AST::CodeSection CodeSec;
18 WasmEdge::AST::CodeSegment CodeSeg;
19 WasmEdge::AST::Expression Expr;
20 Expr.getInstrs() = Instructions;
21 CodeSeg.getExpr() = Expr;
22 CodeSec.getContent().push_back(CodeSeg);
23 return CodeSec;
24}
25
26TEST(SerializeInstructionTest, SerializeBlockControlInstruction) {
27 std::vector<uint8_t> Expected;

Callers 1

TESTFunction · 0.70

Calls 2

getInstrsMethod · 0.45
getContentMethod · 0.45

Tested by

no test coverage detected