Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
null_tests.cpp
Go to the documentation of this file.
1
#include <sysio/vm/backend.hpp>
2
#include <
catch2/catch.hpp
>
3
#include "
utils.hpp
"
4
5
using namespace
sysio::vm
;
6
7
extern
wasm_allocator
wa
;
8
9
TEST_CASE
(
"Tests a null backend"
,
"[null_backend]"
) {
10
/*
11
* (module)
12
*/
13
std::vector<uint8_t> code = { 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 };
14
15
using
backend_t
=
backend<std::nullptr_t, null_backend>
;
16
backend_t
bkend
(code,
nullptr
);
17
}
sysio::vm::backend
Definition
backend.hpp:62
sysio::vm::wasm_allocator
Definition
allocator.hpp:409
bkend
backend_t bkend(hello_wasm, ehm, &wa)
TEST_CASE
#define TEST_CASE(...)
Definition
catch.hpp:222
sysio::vm
Definition
controller.hpp:23
wa
wasm_allocator wa
Definition
main.cpp:10
catch.hpp
utils.hpp
libraries
sys-vm
tests
null_tests.cpp
Generated by
1.12.0