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

Go to the source code of this file.

Functions

 BACKEND_TEST_CASE ("Testing wasm <data_0_wasm>", "[data_0_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_1_wasm>", "[data_1_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_11_wasm>", "[data_11_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_12_wasm>", "[data_12_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_14_wasm>", "[data_14_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_15_wasm>", "[data_15_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_16_wasm>", "[data_16_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_18_wasm>", "[data_18_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_25_wasm>", "[data_25_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_26_wasm>", "[data_26_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_27_wasm>", "[data_27_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_28_wasm>", "[data_28_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_29_wasm>", "[data_29_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_3_wasm>", "[data_3_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_31_wasm>", "[data_31_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_33_wasm>", "[data_33_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_34_wasm>", "[data_34_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_35_wasm>", "[data_35_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_37_wasm>", "[data_37_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_39_wasm>", "[data_39_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_40_wasm>", "[data_40_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_41_wasm>", "[data_41_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_42_wasm>", "[data_42_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_43_wasm>", "[data_43_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_44_wasm>", "[data_44_wasm_tests]")
 
 BACKEND_TEST_CASE ("Testing wasm <data_9_wasm>", "[data_9_wasm_tests]")
 

Variables

wasm_allocator wa
 

Function Documentation

◆ BACKEND_TEST_CASE() [1/26]

BACKEND_TEST_CASE ( "Testing wasm <data_0_wasm>" ,
"" [data_0_wasm_tests] )

Definition at line 18 of file data_tests.cpp.

18 {
20 auto code = read_wasm( std::string(wasm_directory) + "data.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/26]

BACKEND_TEST_CASE ( "Testing wasm <data_11_wasm>" ,
"" [data_11_wasm_tests] )

Definition at line 32 of file data_tests.cpp.

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

◆ BACKEND_TEST_CASE() [3/26]

BACKEND_TEST_CASE ( "Testing wasm <data_12_wasm>" ,
"" [data_12_wasm_tests] )

Definition at line 39 of file data_tests.cpp.

39 {
41 auto code = read_wasm( std::string(wasm_directory) + "data.12.wasm");
42 backend_t bkend( code, &wa );
43
44}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [4/26]

BACKEND_TEST_CASE ( "Testing wasm <data_14_wasm>" ,
"" [data_14_wasm_tests] )

Definition at line 46 of file data_tests.cpp.

46 {
48 auto code = read_wasm( std::string(wasm_directory) + "data.14.wasm");
49 backend_t bkend( code, &wa );
50
51}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [5/26]

BACKEND_TEST_CASE ( "Testing wasm <data_15_wasm>" ,
"" [data_15_wasm_tests] )

Definition at line 53 of file data_tests.cpp.

53 {
55 auto code = read_wasm( std::string(wasm_directory) + "data.15.wasm");
56 backend_t bkend( code, &wa );
57
58}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [6/26]

BACKEND_TEST_CASE ( "Testing wasm <data_16_wasm>" ,
"" [data_16_wasm_tests] )

Definition at line 60 of file data_tests.cpp.

60 {
62 auto code = read_wasm( std::string(wasm_directory) + "data.16.wasm");
63 backend_t bkend( code, &wa );
64
65}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [7/26]

BACKEND_TEST_CASE ( "Testing wasm <data_18_wasm>" ,
"" [data_18_wasm_tests] )

Definition at line 67 of file data_tests.cpp.

67 {
69 auto code = read_wasm( std::string(wasm_directory) + "data.18.wasm");
70 backend_t bkend( code, &wa );
71
72}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [8/26]

BACKEND_TEST_CASE ( "Testing wasm <data_1_wasm>" ,
"" [data_1_wasm_tests] )

Definition at line 25 of file data_tests.cpp.

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

◆ BACKEND_TEST_CASE() [9/26]

BACKEND_TEST_CASE ( "Testing wasm <data_25_wasm>" ,
"" [data_25_wasm_tests] )

Definition at line 74 of file data_tests.cpp.

74 {
76 auto code = read_wasm( std::string(wasm_directory) + "data.25.wasm");
77 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
78}
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() [10/26]

BACKEND_TEST_CASE ( "Testing wasm <data_26_wasm>" ,
"" [data_26_wasm_tests] )

Definition at line 80 of file data_tests.cpp.

80 {
82 auto code = read_wasm( std::string(wasm_directory) + "data.26.wasm");
83 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
84}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [11/26]

BACKEND_TEST_CASE ( "Testing wasm <data_27_wasm>" ,
"" [data_27_wasm_tests] )

Definition at line 86 of file data_tests.cpp.

86 {
88 auto code = read_wasm( std::string(wasm_directory) + "data.27.wasm");
89 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
90}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [12/26]

BACKEND_TEST_CASE ( "Testing wasm <data_28_wasm>" ,
"" [data_28_wasm_tests] )

Definition at line 92 of file data_tests.cpp.

92 {
94 auto code = read_wasm( std::string(wasm_directory) + "data.28.wasm");
95 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
96}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [13/26]

BACKEND_TEST_CASE ( "Testing wasm <data_29_wasm>" ,
"" [data_29_wasm_tests] )

Definition at line 98 of file data_tests.cpp.

98 {
100 auto code = read_wasm( std::string(wasm_directory) + "data.29.wasm");
101 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
102}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [14/26]

BACKEND_TEST_CASE ( "Testing wasm <data_31_wasm>" ,
"" [data_31_wasm_tests] )

Definition at line 111 of file data_tests.cpp.

111 {
113 auto code = read_wasm( std::string(wasm_directory) + "data.31.wasm");
114 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
115}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [15/26]

BACKEND_TEST_CASE ( "Testing wasm <data_33_wasm>" ,
"" [data_33_wasm_tests] )

Definition at line 117 of file data_tests.cpp.

117 {
119 auto code = read_wasm( std::string(wasm_directory) + "data.33.wasm");
120 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
121}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [16/26]

BACKEND_TEST_CASE ( "Testing wasm <data_34_wasm>" ,
"" [data_34_wasm_tests] )

Definition at line 123 of file data_tests.cpp.

123 {
125 auto code = read_wasm( std::string(wasm_directory) + "data.34.wasm");
126 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
127}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [17/26]

BACKEND_TEST_CASE ( "Testing wasm <data_35_wasm>" ,
"" [data_35_wasm_tests] )

Definition at line 129 of file data_tests.cpp.

129 {
131 auto code = read_wasm( std::string(wasm_directory) + "data.35.wasm");
132 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
133}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [18/26]

BACKEND_TEST_CASE ( "Testing wasm <data_37_wasm>" ,
"" [data_37_wasm_tests] )

Definition at line 135 of file data_tests.cpp.

135 {
137 auto code = read_wasm( std::string(wasm_directory) + "data.37.wasm");
138 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
139}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [19/26]

BACKEND_TEST_CASE ( "Testing wasm <data_39_wasm>" ,
"" [data_39_wasm_tests] )

Definition at line 141 of file data_tests.cpp.

141 {
143 auto code = read_wasm( std::string(wasm_directory) + "data.39.wasm");
144 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
145}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [20/26]

BACKEND_TEST_CASE ( "Testing wasm <data_3_wasm>" ,
"" [data_3_wasm_tests] )

Definition at line 104 of file data_tests.cpp.

104 {
106 auto code = read_wasm( std::string(wasm_directory) + "data.3.wasm");
107 backend_t bkend( code, &wa );
108
109}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [21/26]

BACKEND_TEST_CASE ( "Testing wasm <data_40_wasm>" ,
"" [data_40_wasm_tests] )

Definition at line 147 of file data_tests.cpp.

147 {
149 auto code = read_wasm( std::string(wasm_directory) + "data.40.wasm");
150 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
151}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [22/26]

BACKEND_TEST_CASE ( "Testing wasm <data_41_wasm>" ,
"" [data_41_wasm_tests] )

Definition at line 153 of file data_tests.cpp.

153 {
155 auto code = read_wasm( std::string(wasm_directory) + "data.41.wasm");
156 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
157}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [23/26]

BACKEND_TEST_CASE ( "Testing wasm <data_42_wasm>" ,
"" [data_42_wasm_tests] )

Definition at line 159 of file data_tests.cpp.

159 {
161 auto code = read_wasm( std::string(wasm_directory) + "data.42.wasm");
162 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
163}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [24/26]

BACKEND_TEST_CASE ( "Testing wasm <data_43_wasm>" ,
"" [data_43_wasm_tests] )

Definition at line 165 of file data_tests.cpp.

165 {
167 auto code = read_wasm( std::string(wasm_directory) + "data.43.wasm");
168 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
169}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [25/26]

BACKEND_TEST_CASE ( "Testing wasm <data_44_wasm>" ,
"" [data_44_wasm_tests] )

Definition at line 171 of file data_tests.cpp.

171 {
173 auto code = read_wasm( std::string(wasm_directory) + "data.44.wasm");
174 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
175}
Here is the call graph for this function:

◆ BACKEND_TEST_CASE() [26/26]

BACKEND_TEST_CASE ( "Testing wasm <data_9_wasm>" ,
"" [data_9_wasm_tests] )

Definition at line 177 of file data_tests.cpp.

177 {
179 auto code = read_wasm( std::string(wasm_directory) + "data.9.wasm");
180 backend_t bkend( code, &wa );
181
182}
Here is the call graph for this function:

Variable Documentation

◆ wa

wasm_allocator wa
extern

Definition at line 10 of file main.cpp.