Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
custom_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 custom_tests.cpp:

Go to the source code of this file.

Functions

 BACKEND_TEST_CASE ("Testing wasm <custom_0_wasm>", "[custom_0_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_1_wasm>", "[custom_1_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_2_wasm>", "[custom_2_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_3_wasm>", "[custom_3_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_4_wasm>", "[custom_4_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_5_wasm>", "[custom_5_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_6_wasm>", "[custom_6_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_7_wasm>", "[custom_7_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_8_wasm>", "[custom_8_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <custom_9_wasm>", "[custom_9_wasm_tests]")
 

Variables

wasm_allocator wa
 

Function Documentation

◆ BACKEND_TEST_CASE() [1/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_0_wasm>" ,
"" [custom_0_wasm_tests] )

Definition at line 18 of file custom_tests.cpp.

18 {
20 auto code = read_wasm( std::string(wasm_directory) + "custom.0.wasm");
21 backend_t bkend( code, &wa );
22
23}
wasm_allocator wa
Definition main.cpp:10
backend_t bkend(hello_wasm, ehm, &wa)
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/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_1_wasm>" ,
"" [custom_1_wasm_tests] )

Definition at line 25 of file custom_tests.cpp.

25 {
27 auto code = read_wasm( std::string(wasm_directory) + "custom.1.wasm");
28 backend_t bkend( code, &wa );
29
30}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [3/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_2_wasm>" ,
"" [custom_2_wasm_tests] )

Definition at line 32 of file custom_tests.cpp.

32 {
34 auto code = read_wasm( std::string(wasm_directory) + "custom.2.wasm");
35 backend_t bkend( code, &wa );
36
37}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [4/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_3_wasm>" ,
"" [custom_3_wasm_tests] )

Definition at line 39 of file custom_tests.cpp.

39 {
41 auto code = read_wasm( std::string(wasm_directory) + "custom.3.wasm");
42 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
43}
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
Definition catch.hpp:203
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [5/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_4_wasm>" ,
"" [custom_4_wasm_tests] )

Definition at line 45 of file custom_tests.cpp.

45 {
47 auto code = read_wasm( std::string(wasm_directory) + "custom.4.wasm");
48 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
49}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [6/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_5_wasm>" ,
"" [custom_5_wasm_tests] )

Definition at line 51 of file custom_tests.cpp.

51 {
53 auto code = read_wasm( std::string(wasm_directory) + "custom.5.wasm");
54 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
55}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [7/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_6_wasm>" ,
"" [custom_6_wasm_tests] )

Definition at line 57 of file custom_tests.cpp.

57 {
59 auto code = read_wasm( std::string(wasm_directory) + "custom.6.wasm");
60 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
61}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [8/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_7_wasm>" ,
"" [custom_7_wasm_tests] )

Definition at line 63 of file custom_tests.cpp.

63 {
65 auto code = read_wasm( std::string(wasm_directory) + "custom.7.wasm");
66 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
67}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [9/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_8_wasm>" ,
"" [custom_8_wasm_tests] )

Definition at line 69 of file custom_tests.cpp.

69 {
71 auto code = read_wasm( std::string(wasm_directory) + "custom.8.wasm");
72 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
73}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [10/10]

BACKEND_TEST_CASE ( "Testing wasm <custom_9_wasm>" ,
"" [custom_9_wasm_tests] )

Definition at line 75 of file custom_tests.cpp.

75 {
77 auto code = read_wasm( std::string(wasm_directory) + "custom.9.wasm");
78 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
79}
Here is the call graph for this function:

Variable Documentation

◆ wa

wasm_allocator wa
extern

Definition at line 10 of file main.cpp.