|
luasandbox
1.4.0
Generic Lua sandbox for dynamic data analysis
|
Test interface for the generic lua sandbox. More...

Go to the source code of this file.
Macros | |
| #define | LSB_TEST_EXPORT |
Functions | |
| LSB_TEST_EXPORT int | lsb_test_process (lsb_lua_sandbox *lsb, double tc) |
| Function to emulate processing data. More... | |
| LSB_TEST_EXPORT int | lsb_test_report (lsb_lua_sandbox *lsb, double tc) |
| Function to emulate outputting summary data. More... | |
| LSB_TEST_EXPORT int | lsb_test_write_output (lua_State *lua) |
| Callback for collecting output, places a pointer to the results in the global lsb_test_output variable )not thread safe) More... | |
Variables | |
| LSB_TEST_EXPORT const char * | lsb_test_output |
| Global variable to store the test output. More... | |
| LSB_TEST_EXPORT size_t | lsb_test_output_len |
| Global variable storing the length of the current test output string. More... | |
| LSB_TEST_EXPORT lsb_logger | lsb_test_logger |
| Generaly purpose stderr logger. More... | |
Test interface for the generic lua sandbox.
Definition in file sandbox.h.
| LSB_TEST_EXPORT int lsb_test_process | ( | lsb_lua_sandbox * | lsb, |
| double | tc | ||
| ) |
Function to emulate processing data.
| lsb | Pointer to a lua sandbox |
| tc | Test case number to control how the sandbox state is updated |
| LSB_TEST_EXPORT int lsb_test_report | ( | lsb_lua_sandbox * | lsb, |
| double | tc | ||
| ) |
Function to emulate outputting summary data.
| lsb | Pointer to a lua sandbox |
| tc | Test case number to control what data is returned and how the state is updated |
| LSB_TEST_EXPORT int lsb_test_write_output | ( | lua_State * | lua | ) |
Callback for collecting output, places a pointer to the results in the global lsb_test_output variable )not thread safe)
| lua | Lua state |
| LSB_TEST_EXPORT lsb_logger lsb_test_logger |
Generaly purpose stderr logger.
| LSB_TEST_EXPORT const char* lsb_test_output |
Global variable to store the test output.
| LSB_TEST_EXPORT size_t lsb_test_output_len |
Global variable storing the length of the current test output string.
1.8.11