MeterLogger
|
#include <ctype.h>
#include "heatshrink_encoder.h"
#include "heatshrink_decoder.h"
#include "greatest.h"
Go to the source code of this file.
Functions | |
SUITE (integration) | |
static void | fill_with_pseudorandom_letters (uint8_t *buf, uint16_t size, uint32_t seed) |
static void | dump_buf (char *name, uint8_t *buf, uint16_t count) |
static int | compress_and_expand_and_check (uint8_t *input, uint32_t input_size, int log_lvl) |
TEST | pseudorandom_data_should_match (uint32_t size, uint32_t seed) |
GREATEST_MAIN_DEFS () | |
int | main (int argc, char **argv) |
Variables | |
static heatshrink_encoder | hse |
static heatshrink_decoder | hsd |
|
static |
Definition at line 34 of file test_heatshrink_static.c.
References ASSERT, ASSERT_EQ, dump_buf(), FAILm, free, heatshrink_decoder_finish(), heatshrink_decoder_poll(), heatshrink_decoder_reset(), heatshrink_decoder_sink(), heatshrink_encoder_finish(), heatshrink_encoder_poll(), heatshrink_encoder_reset(), heatshrink_encoder_sink(), HSDR_FINISH_DONE, HSDR_FINISH_MORE, HSDR_POLL_EMPTY, HSDR_POLL_MORE, HSER_FINISH_DONE, HSER_FINISH_MORE, HSER_POLL_EMPTY, HSER_POLL_MORE, isprint, malloc, memset, NULL, PASS, and printf.
Referenced by pseudorandom_data_should_match().
|
static |
Definition at line 27 of file test_heatshrink_static.c.
References isprint, and printf.
Referenced by compress_and_expand_and_check().
|
static |
Definition at line 19 of file test_heatshrink_static.c.
Referenced by pseudorandom_data_should_match().
GREATEST_MAIN_DEFS | ( | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 156 of file test_heatshrink_static.c.
References GREATEST_MAIN_BEGIN, GREATEST_MAIN_END, printf, and RUN_SUITE.
TEST pseudorandom_data_should_match | ( | uint32_t | size, |
uint32_t | seed | ||
) |
Definition at line 135 of file test_heatshrink_static.c.
References compress_and_expand_and_check(), and fill_with_pseudorandom_letters().
Referenced by SUITE().
SUITE | ( | integration | ) |
Definition at line 141 of file test_heatshrink_static.c.
References GREATEST_IS_VERBOSE, GREATEST_MAIN_DEFS(), printf, pseudorandom_data_should_match(), and RUN_TESTp.
|
static |
Definition at line 17 of file test_heatshrink_static.c.
Referenced by compress_and_expand_and_check(), data_with_simple_repetition_should_match_with_absurdly_tiny_buffers(), data_without_duplication_should_match_with_absurdly_tiny_buffers(), decode(), decoder_finish_should_note_when_done(), decoder_finish_should_reject_null_input(), decoder_poll_should_expand_short_literal(), decoder_poll_should_expand_short_literal_and_backref(), decoder_poll_should_expand_short_literal_and_backref_when_fed_input_byte_by_byte(), decoder_poll_should_expand_short_self_overlapping_backref(), decoder_poll_should_reject_null_output_buffer(), decoder_poll_should_reject_null_output_size_pointer(), decoder_poll_should_return_empty_if_empty(), decoder_poll_should_suspend_if_out_of_space_in_output_buffer_during_backref_expansion(), decoder_poll_should_suspend_if_out_of_space_in_output_buffer_during_literal_expansion(), decoder_should_not_get_stuck_with_finish_yielding_MORE_but_0_bytes_output_from_poll(), decoder_sink_should_reject_excessively_large_input(), decoder_sink_should_reject_null_count_pointer(), decoder_sink_should_reject_null_input_pointer(), decoder_sink_should_sink_data_when_preconditions_hold(), and heatshrink_decoder_alloc().
|
static |
Definition at line 16 of file test_heatshrink_static.c.
Referenced by compress_and_expand_and_check(), data_with_simple_repetition_should_match_with_absurdly_tiny_buffers(), data_without_duplication_should_match_with_absurdly_tiny_buffers(), encode(), encoder_poll_should_detect_repeated_substring(), encoder_poll_should_detect_repeated_substring_and_preserve_trailing_literal(), encoder_poll_should_indicate_when_no_input_is_provided(), encoder_poll_should_reject_nulls(), encoder_should_emit_data_without_repetitions_as_literal_sequence(), encoder_should_emit_series_of_same_byte_as_literal_then_backref(), encoder_sink_should_accept_input_when_it_will_fit(), encoder_sink_should_accept_partial_input_when_some_will_fit(), encoder_sink_should_reject_nulls(), gen(), heatshrink_encoder_alloc(), and heatshrink_encoder_sink().