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

Go to the source code of this file.

Functions

 BACKEND_TEST_CASE ("Test allow_invalid_empty_local_set default", "[allow_invalid_empty_local_set_test]")
 
 BACKEND_TEST_CASE ("Test allow_invalid_empty_local_set empty", "[allow_invalid_empty_local_set_test]")
 
 BACKEND_TEST_CASE ("Test allow_invalid_empty_local_set static fail", "[allow_invalid_empty_local_set_test]")
 
 BACKEND_TEST_CASE ("Test allow_invalid_empty_local_set static pass", "[allow_invalid_empty_local_set_test]")
 
 BACKEND_TEST_CASE ("Test allow_invalid_empty_local_set dynamic fail", "[allow_invalid_empty_local_set_test]")
 
 BACKEND_TEST_CASE ("Test allow_invalid_empty_local_set dynamic pass", "[allow_invalid_empty_local_set_test]")
 

Variables

wasm_allocator wa
 

Function Documentation

◆ BACKEND_TEST_CASE() [1/6]

BACKEND_TEST_CASE ( "Test allow_invalid_empty_local_set default" ,
"" [allow_invalid_empty_local_set_test] )

Definition at line 36 of file allow_invalid_empty_local_set_tests.cpp.

36 {
38 CHECK_THROWS_AS(backend_t(bad_local_wasm, &wa), wasm_parse_exception);
39}
wasm_allocator wa
Definition main.cpp:10
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
Definition catch.hpp:203

◆ BACKEND_TEST_CASE() [2/6]

BACKEND_TEST_CASE ( "Test allow_invalid_empty_local_set dynamic fail" ,
"" [allow_invalid_empty_local_set_test] )

Definition at line 56 of file allow_invalid_empty_local_set_tests.cpp.

56 {
58 CHECK_THROWS_AS(backend_t(bad_local_wasm, nullptr, dynamic_options{false}), wasm_parse_exception);
59}

◆ BACKEND_TEST_CASE() [3/6]

BACKEND_TEST_CASE ( "Test allow_invalid_empty_local_set dynamic pass" ,
"" [allow_invalid_empty_local_set_test] )

Definition at line 61 of file allow_invalid_empty_local_set_tests.cpp.

61 {
63 backend_t backend(bad_local_wasm, nullptr, dynamic_options{true});
64}

◆ BACKEND_TEST_CASE() [4/6]

BACKEND_TEST_CASE ( "Test allow_invalid_empty_local_set empty" ,
"" [allow_invalid_empty_local_set_test] )

Definition at line 41 of file allow_invalid_empty_local_set_tests.cpp.

41 {
43 CHECK_THROWS_AS(backend_t(bad_local_wasm, &wa), wasm_parse_exception);
44}

◆ BACKEND_TEST_CASE() [5/6]

BACKEND_TEST_CASE ( "Test allow_invalid_empty_local_set static fail" ,
"" [allow_invalid_empty_local_set_test] )

Definition at line 46 of file allow_invalid_empty_local_set_tests.cpp.

46 {
48 CHECK_THROWS_AS(backend_t(bad_local_wasm, &wa), wasm_parse_exception);
49}

◆ BACKEND_TEST_CASE() [6/6]

BACKEND_TEST_CASE ( "Test allow_invalid_empty_local_set static pass" ,
"" [allow_invalid_empty_local_set_test] )

Variable Documentation

◆ wa

wasm_allocator wa
extern

Definition at line 10 of file main.cpp.