| 13 | WasmEdge::Loader::Serializer Ser(Conf); |
| 14 | |
| 15 | WasmEdge::AST::CodeSection |
| 16 | createCodeSec(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 | |
| 26 | TEST(SerializeInstructionTest, SerializeBlockControlInstruction) { |
| 27 | std::vector<uint8_t> Expected; |
no test coverage detected