Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio_max_nested_structures_tests.cpp File Reference
#include <sysio/vm/backend.hpp>
#include "utils.hpp"
#include <catch2/catch.hpp>
Include dependency graph for sysio_max_nested_structures_tests.cpp:

Go to the source code of this file.

Functions

 BACKEND_TEST_CASE ("Test sysio_max_nested_structures default", "[sysio_max_nested_structures_test]")
 
 BACKEND_TEST_CASE ("Test sysio_max_nested_structures unlimited", "[sysio_max_nested_structures_test]")
 
 BACKEND_TEST_CASE ("Test sysio_max_nested_structures static fail", "[sysio_max_nested_structures_test]")
 
 BACKEND_TEST_CASE ("Test sysio_max_nested_structures static pass", "[sysio_max_nested_structures_test]")
 
 BACKEND_TEST_CASE ("Test sysio_max_nested_structures dynamic fail", "[sysio_max_nested_structures_test]")
 
 BACKEND_TEST_CASE ("Test sysio_max_nested_structures dynamic pass", "[sysio_max_nested_structures_test]")
 

Variables

wasm_allocator wa
 

Function Documentation

◆ BACKEND_TEST_CASE() [1/6]

BACKEND_TEST_CASE ( "Test sysio_max_nested_structures default" ,
"" [sysio_max_nested_structures_test] )

Definition at line 56 of file sysio_max_nested_structures_tests.cpp.

56 {
58 backend_t backend(nested_4_wasm, &wa);
59 backend_t backend2(nested_4_wasm_2, &wa);
60}
wasm_allocator wa
Definition main.cpp:10

◆ BACKEND_TEST_CASE() [2/6]

BACKEND_TEST_CASE ( "Test sysio_max_nested_structures dynamic fail" ,
"" [sysio_max_nested_structures_test] )

Definition at line 80 of file sysio_max_nested_structures_tests.cpp.

80 {
82 CHECK_THROWS_AS(backend_t(nested_4_wasm, nullptr, dynamic_options{3}), wasm_parse_exception);
83 CHECK_THROWS_AS(backend_t(nested_4_wasm_2, nullptr, dynamic_options{3}), wasm_parse_exception);
84}
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
Definition catch.hpp:203

◆ BACKEND_TEST_CASE() [3/6]

BACKEND_TEST_CASE ( "Test sysio_max_nested_structures dynamic pass" ,
"" [sysio_max_nested_structures_test] )

Definition at line 86 of file sysio_max_nested_structures_tests.cpp.

86 {
88 backend_t backend(nested_4_wasm, nullptr, dynamic_options{4});
89 backend_t backend2(nested_4_wasm_2, nullptr, dynamic_options{4});
90}

◆ BACKEND_TEST_CASE() [4/6]

BACKEND_TEST_CASE ( "Test sysio_max_nested_structures static fail" ,
"" [sysio_max_nested_structures_test] )

Definition at line 68 of file sysio_max_nested_structures_tests.cpp.

68 {
70 CHECK_THROWS_AS(backend_t(nested_4_wasm, &wa), wasm_parse_exception);
71 CHECK_THROWS_AS(backend_t(nested_4_wasm_2, &wa), wasm_parse_exception);
72}

◆ BACKEND_TEST_CASE() [5/6]

BACKEND_TEST_CASE ( "Test sysio_max_nested_structures static pass" ,
"" [sysio_max_nested_structures_test] )

Definition at line 74 of file sysio_max_nested_structures_tests.cpp.

74 {
76 backend_t backend(nested_4_wasm, &wa);
77 backend_t backend2(nested_4_wasm_2, &wa);
78}

◆ BACKEND_TEST_CASE() [6/6]

BACKEND_TEST_CASE ( "Test sysio_max_nested_structures unlimited" ,
"" [sysio_max_nested_structures_test] )

Definition at line 62 of file sysio_max_nested_structures_tests.cpp.

62 {
64 backend_t backend(nested_4_wasm, &wa);
65 backend_t backend2(nested_4_wasm_2, &wa);
66}

Variable Documentation

◆ wa

wasm_allocator wa
extern

Definition at line 10 of file main.cpp.