Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
e_table_tests.cpp File Reference
#include <algorithm>
#include <vector>
#include <iostream>
#include <iterator>
#include <cmath>
#include <cstdlib>
#include <catch2/catch.hpp>
#include <utils.hpp>
#include <wasm_config.hpp>
#include <sysio/vm/backend.hpp>
Include dependency graph for e_table_tests.cpp:

Go to the source code of this file.

Functions

 BACKEND_TEST_CASE ("Testing wasm <e_table_0_wasm>", "[e_table_0_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <e_table_1_wasm>", "[e_table_1_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <e_table_2_wasm>", "[e_table_2_wasm_tests]")
 

Variables

wasm_allocator wa
 

Function Documentation

◆ BACKEND_TEST_CASE() [1/3]

BACKEND_TEST_CASE ( "Testing wasm <e_table_0_wasm>" ,
"" [e_table_0_wasm_tests] )

Definition at line 18 of file e_table_tests.cpp.

18 {
20 auto code = read_wasm( std::string(wasm_directory) + "e_table.0.wasm");
21 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
22}
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
Definition catch.hpp:203
std::vector< uint8_t > read_wasm(const std::string &fname)
Definition utils.hpp:30
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [2/3]

BACKEND_TEST_CASE ( "Testing wasm <e_table_1_wasm>" ,
"" [e_table_1_wasm_tests] )

Definition at line 24 of file e_table_tests.cpp.

24 {
26 auto code = read_wasm( std::string(wasm_directory) + "e_table.1.wasm");
27 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
28}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [3/3]

BACKEND_TEST_CASE ( "Testing wasm <e_table_2_wasm>" ,
"" [e_table_2_wasm_tests] )

Definition at line 30 of file e_table_tests.cpp.

30 {
32 auto code = read_wasm( std::string(wasm_directory) + "e_table.2.wasm");
33 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
34}
Here is the call graph for this function:

Variable Documentation

◆ wa

wasm_allocator wa
extern

Definition at line 10 of file main.cpp.