Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
data_tests.cpp
Go to the documentation of this file.
1// Generated by spec_test_generator. DO NOT MODIFY THIS FILE.
2
3#include <algorithm>
4#include <vector>
5#include <iostream>
6#include <iterator>
7#include <cmath>
8#include <cstdlib>
9#include <catch2/catch.hpp>
10#include <utils.hpp>
11#include <wasm_config.hpp>
12#include <sysio/vm/backend.hpp>
13
14using namespace sysio;
15using namespace sysio::vm;
16extern wasm_allocator wa;
17
18BACKEND_TEST_CASE( "Testing wasm <data_0_wasm>", "[data_0_wasm_tests]" ) {
20 auto code = read_wasm( std::string(wasm_directory) + "data.0.wasm");
21 backend_t bkend( code, &wa );
22
23}
24
25BACKEND_TEST_CASE( "Testing wasm <data_1_wasm>", "[data_1_wasm_tests]" ) {
27 auto code = read_wasm( std::string(wasm_directory) + "data.1.wasm");
28 backend_t bkend( code, &wa );
29
30}
31
32BACKEND_TEST_CASE( "Testing wasm <data_11_wasm>", "[data_11_wasm_tests]" ) {
34 auto code = read_wasm( std::string(wasm_directory) + "data.11.wasm");
35 backend_t bkend( code, &wa );
36
37}
38
39BACKEND_TEST_CASE( "Testing wasm <data_12_wasm>", "[data_12_wasm_tests]" ) {
41 auto code = read_wasm( std::string(wasm_directory) + "data.12.wasm");
42 backend_t bkend( code, &wa );
43
44}
45
46BACKEND_TEST_CASE( "Testing wasm <data_14_wasm>", "[data_14_wasm_tests]" ) {
48 auto code = read_wasm( std::string(wasm_directory) + "data.14.wasm");
49 backend_t bkend( code, &wa );
50
51}
52
53BACKEND_TEST_CASE( "Testing wasm <data_15_wasm>", "[data_15_wasm_tests]" ) {
55 auto code = read_wasm( std::string(wasm_directory) + "data.15.wasm");
56 backend_t bkend( code, &wa );
57
58}
59
60BACKEND_TEST_CASE( "Testing wasm <data_16_wasm>", "[data_16_wasm_tests]" ) {
62 auto code = read_wasm( std::string(wasm_directory) + "data.16.wasm");
63 backend_t bkend( code, &wa );
64
65}
66
67BACKEND_TEST_CASE( "Testing wasm <data_18_wasm>", "[data_18_wasm_tests]" ) {
69 auto code = read_wasm( std::string(wasm_directory) + "data.18.wasm");
70 backend_t bkend( code, &wa );
71
72}
73
74BACKEND_TEST_CASE( "Testing wasm <data_25_wasm>", "[data_25_wasm_tests]" ) {
76 auto code = read_wasm( std::string(wasm_directory) + "data.25.wasm");
77 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
78}
79
80BACKEND_TEST_CASE( "Testing wasm <data_26_wasm>", "[data_26_wasm_tests]" ) {
82 auto code = read_wasm( std::string(wasm_directory) + "data.26.wasm");
83 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
84}
85
86BACKEND_TEST_CASE( "Testing wasm <data_27_wasm>", "[data_27_wasm_tests]" ) {
88 auto code = read_wasm( std::string(wasm_directory) + "data.27.wasm");
89 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
90}
91
92BACKEND_TEST_CASE( "Testing wasm <data_28_wasm>", "[data_28_wasm_tests]" ) {
94 auto code = read_wasm( std::string(wasm_directory) + "data.28.wasm");
95 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
96}
97
98BACKEND_TEST_CASE( "Testing wasm <data_29_wasm>", "[data_29_wasm_tests]" ) {
100 auto code = read_wasm( std::string(wasm_directory) + "data.29.wasm");
101 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
102}
103
104BACKEND_TEST_CASE( "Testing wasm <data_3_wasm>", "[data_3_wasm_tests]" ) {
106 auto code = read_wasm( std::string(wasm_directory) + "data.3.wasm");
107 backend_t bkend( code, &wa );
108
109}
110
111BACKEND_TEST_CASE( "Testing wasm <data_31_wasm>", "[data_31_wasm_tests]" ) {
113 auto code = read_wasm( std::string(wasm_directory) + "data.31.wasm");
114 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
115}
116
117BACKEND_TEST_CASE( "Testing wasm <data_33_wasm>", "[data_33_wasm_tests]" ) {
119 auto code = read_wasm( std::string(wasm_directory) + "data.33.wasm");
120 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
121}
122
123BACKEND_TEST_CASE( "Testing wasm <data_34_wasm>", "[data_34_wasm_tests]" ) {
125 auto code = read_wasm( std::string(wasm_directory) + "data.34.wasm");
126 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
127}
128
129BACKEND_TEST_CASE( "Testing wasm <data_35_wasm>", "[data_35_wasm_tests]" ) {
131 auto code = read_wasm( std::string(wasm_directory) + "data.35.wasm");
132 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
133}
134
135BACKEND_TEST_CASE( "Testing wasm <data_37_wasm>", "[data_37_wasm_tests]" ) {
137 auto code = read_wasm( std::string(wasm_directory) + "data.37.wasm");
138 CHECK_THROWS_AS(backend_t(code, &wa), std::exception);
139}
140
141BACKEND_TEST_CASE( "Testing wasm <data_39_wasm>", "[data_39_wasm_tests]" ) {
143 auto code = read_wasm( std::string(wasm_directory) + "data.39.wasm");
144 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
145}
146
147BACKEND_TEST_CASE( "Testing wasm <data_40_wasm>", "[data_40_wasm_tests]" ) {
149 auto code = read_wasm( std::string(wasm_directory) + "data.40.wasm");
150 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
151}
152
153BACKEND_TEST_CASE( "Testing wasm <data_41_wasm>", "[data_41_wasm_tests]" ) {
155 auto code = read_wasm( std::string(wasm_directory) + "data.41.wasm");
156 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
157}
158
159BACKEND_TEST_CASE( "Testing wasm <data_42_wasm>", "[data_42_wasm_tests]" ) {
161 auto code = read_wasm( std::string(wasm_directory) + "data.42.wasm");
162 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
163}
164
165BACKEND_TEST_CASE( "Testing wasm <data_43_wasm>", "[data_43_wasm_tests]" ) {
167 auto code = read_wasm( std::string(wasm_directory) + "data.43.wasm");
168 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
169}
170
171BACKEND_TEST_CASE( "Testing wasm <data_44_wasm>", "[data_44_wasm_tests]" ) {
173 auto code = read_wasm( std::string(wasm_directory) + "data.44.wasm");
174 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
175}
176
177BACKEND_TEST_CASE( "Testing wasm <data_9_wasm>", "[data_9_wasm_tests]" ) {
179 auto code = read_wasm( std::string(wasm_directory) + "data.9.wasm");
180 backend_t bkend( code, &wa );
181
182}
183
wasm_allocator wa
Definition main.cpp:10
backend_t bkend(hello_wasm, ehm, &wa)
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
#define BACKEND_TEST_CASE(name, tags)
Definition utils.hpp:59