Rizin
unix-like reverse engineering framework and cli tools
|
Common definitions for test applications. More...
Go to the source code of this file.
Macros | |
#define | memcrap(buf, size) memset(buf, 0xFD, size) |
#define | expect(test) |
#define | succeed(test) expect(!(test)) |
#define | fail(test) expect(test) |
Functions | |
static const char * | lzma_ret_sym (lzma_ret ret) |
static bool | coder_loop (lzma_stream *strm, uint8_t *in, size_t in_size, uint8_t *out, size_t out_size, lzma_ret expected_ret, lzma_action finishing_action) |
static bool | decoder_loop_ret (lzma_stream *strm, uint8_t *in, size_t in_size, lzma_ret expected_ret) |
static bool | decoder_loop (lzma_stream *strm, uint8_t *in, size_t in_size) |
Common definitions for test applications.
Definition in file tests.h.
#define expect | ( | test | ) |
|
inlinestatic |
Definition at line 58 of file tests.h.
References test-lz4-speed::action, lzma_stream::avail_in, lzma_stream::avail_out, error(), in, in_size, LZMA_OK, LZMA_RUN, lzma_stream::next_in, lzma_stream::next_out, NULL, out, strm, lzma_stream::total_in, and lzma_stream::total_out.
Referenced by decoder_loop(), decoder_loop_ret(), test_code(), and test_corrupt().
|
inlinestatic |
Definition at line 113 of file tests.h.
References coder_loop(), in, in_size, LZMA_RUN, LZMA_STREAM_END, NULL, and strm.
Referenced by test_code().
|
inlinestatic |
Definition at line 105 of file tests.h.
References coder_loop(), in, in_size, LZMA_RUN, NULL, and strm.
Referenced by test_corrupt().