MeterLogger
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
Go to the source code of this file.
Data Structures | |
struct | greatest_suite_info |
struct | greatest_run_info |
Typedefs | |
typedef struct greatest_suite_info | greatest_suite_info |
typedef void() | greatest_suite_cb(void) |
typedef void() | greatest_setup_cb(void *udata) |
typedef void() | greatest_teardown_cb(void *udata) |
typedef struct greatest_run_info | greatest_run_info |
Enumerations | |
enum | GREATEST_FLAG { GREATEST_FLAG_VERBOSE = 0x01, GREATEST_FLAG_FIRST_FAIL = 0x02, GREATEST_FLAG_LIST_ONLY = 0x04 } |
Functions | |
void | greatest_do_pass (const char *name) |
void | greatest_do_fail (const char *name) |
void | greatest_do_skip (const char *name) |
int | greatest_pre_test (const char *name) |
void | greatest_post_test (const char *name, int res) |
void | greatest_usage (const char *name) |
void | GREATEST_SET_SETUP_CB (greatest_setup_cb *cb, void *udata) |
void | GREATEST_SET_TEARDOWN_CB (greatest_teardown_cb *cb, void *udata) |
Variables | |
greatest_run_info | greatest_info |
#define ASSERT GREATEST_ASSERT |
Definition at line 569 of file greatest.h.
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(), decoder_should_not_get_stuck_with_finish_yielding_MORE_but_0_bytes_output_from_poll(), 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(), and encoder_sink_should_reject_nulls().
#define ASSERT_EQ GREATEST_ASSERT_EQ |
Definition at line 572 of file greatest.h.
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(), decoder_alloc_should_reject_excessively_small_window(), decoder_alloc_should_reject_zero_byte_input_buffer(), 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_hsd(), 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_hsd_pointer(), decoder_sink_should_reject_null_input_pointer(), decoder_sink_should_sink_data_when_preconditions_hold(), encoder_alloc_should_reject_invalid_arguments(), encoder_finish_should_reject_nulls(), 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(), and gen().
#define ASSERT_EQm GREATEST_ASSERT_EQm |
Definition at line 575 of file greatest.h.
#define ASSERT_FALSE GREATEST_ASSERT_FALSE |
Definition at line 571 of file greatest.h.
#define ASSERT_FALSEm GREATEST_ASSERT_FALSEm |
Definition at line 574 of file greatest.h.
#define ASSERT_STR_EQ GREATEST_ASSERT_STR_EQ |
Definition at line 573 of file greatest.h.
#define ASSERT_STR_EQm GREATEST_ASSERT_STR_EQm |
Definition at line 576 of file greatest.h.
#define ASSERTm GREATEST_ASSERTm |
Definition at line 570 of file greatest.h.
#define FAIL GREATEST_FAIL |
Definition at line 578 of file greatest.h.
#define FAILm GREATEST_FAILm |
Definition at line 581 of file greatest.h.
Referenced by compress_and_expand_and_check().
#define GREATEST_ASSERT | ( | COND | ) | GREATEST_ASSERTm(#COND, COND) |
Definition at line 246 of file greatest.h.
#define GREATEST_ASSERT_EQ | ( | EXP, | |
GOT | |||
) | GREATEST_ASSERT_EQm(#EXP " != " #GOT, EXP, GOT) |
Definition at line 248 of file greatest.h.
#define GREATEST_ASSERT_EQm | ( | MSG, | |
EXP, | |||
GOT | |||
) |
Definition at line 273 of file greatest.h.
#define GREATEST_ASSERT_FALSE | ( | COND | ) | GREATEST_ASSERT_FALSEm(#COND, COND) |
Definition at line 247 of file greatest.h.
#define GREATEST_ASSERT_FALSEm | ( | MSG, | |
COND | |||
) |
Definition at line 264 of file greatest.h.
#define GREATEST_ASSERT_STR_EQ | ( | EXP, | |
GOT | |||
) | GREATEST_ASSERT_STR_EQm(#EXP " != " #GOT, EXP, GOT) |
Definition at line 249 of file greatest.h.
#define GREATEST_ASSERT_STR_EQm | ( | MSG, | |
EXP, | |||
GOT | |||
) |
Definition at line 282 of file greatest.h.
#define GREATEST_ASSERTm | ( | MSG, | |
COND | |||
) |
Definition at line 255 of file greatest.h.
#define GREATEST_CLOCK_DIFF | ( | C1, | |
C2 | |||
) |
Definition at line 327 of file greatest.h.
#define GREATEST_DEFAULT_WIDTH 72 |
Definition at line 83 of file greatest.h.
#define GREATEST_FAIL | ( | ) | GREATEST_FAILm(NULL) |
Definition at line 244 of file greatest.h.
#define GREATEST_FAILm | ( | MSG | ) |
Definition at line 305 of file greatest.h.
#define GREATEST_FAILURE_ABORT | ( | ) | (greatest_info.suite.failed > 0 && GREATEST_FIRST_FAIL()) |
Definition at line 240 of file greatest.h.
#define GREATEST_FIRST_FAIL | ( | ) | (greatest_info.flags & GREATEST_FLAG_FIRST_FAIL) |
Definition at line 239 of file greatest.h.
#define GREATEST_IS_VERBOSE | ( | ) | (greatest_info.flags & GREATEST_FLAG_VERBOSE) |
Definition at line 237 of file greatest.h.
Referenced by SUITE().
#define GREATEST_LIST_ONLY | ( | ) | (greatest_info.flags & GREATEST_FLAG_LIST_ONLY) |
Definition at line 238 of file greatest.h.
#define GREATEST_MAIN_BEGIN | ( | ) |
Definition at line 502 of file greatest.h.
Referenced by main().
#define GREATEST_MAIN_DEFS | ( | ) |
Definition at line 333 of file greatest.h.
#define GREATEST_MAIN_END | ( | ) |
Definition at line 543 of file greatest.h.
Referenced by main().
#define GREATEST_PASS | ( | ) | GREATEST_PASSm(NULL) |
Definition at line 243 of file greatest.h.
#define GREATEST_PASSm | ( | MSG | ) |
Definition at line 299 of file greatest.h.
#define GREATEST_RUN_SUITE | ( | S_NAME | ) | greatest_run_suite(S_NAME, #S_NAME) |
Definition at line 196 of file greatest.h.
#define GREATEST_RUN_TEST | ( | TEST | ) |
Definition at line 199 of file greatest.h.
#define GREATEST_RUN_TEST1 | ( | TEST, | |
ENV | |||
) |
Definition at line 211 of file greatest.h.
#define GREATEST_SET_TIME | ( | NAME | ) |
Definition at line 319 of file greatest.h.
#define GREATEST_SKIP | ( | ) | GREATEST_SKIPm(NULL) |
Definition at line 245 of file greatest.h.
#define GREATEST_SKIPm | ( | MSG | ) |
Definition at line 313 of file greatest.h.
#define GREATEST_STDOUT stdout |
Definition at line 88 of file greatest.h.
#define GREATEST_SUITE | ( | NAME | ) | void NAME(void) |
Definition at line 189 of file greatest.h.
#define GREATEST_TEST static int |
Definition at line 193 of file greatest.h.
#define GREATEST_USE_ABBREVS 1 |
Definition at line 93 of file greatest.h.
#define GREATEST_VERSION_MAJOR 0 |
Definition at line 20 of file greatest.h.
#define GREATEST_VERSION_MINOR 9 |
Definition at line 21 of file greatest.h.
#define GREATEST_VERSION_PATCH 3 |
Definition at line 22 of file greatest.h.
#define PASS GREATEST_PASS |
Definition at line 577 of file greatest.h.
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(), decoder_alloc_should_reject_excessively_small_window(), decoder_alloc_should_reject_zero_byte_input_buffer(), 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_hsd(), 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_hsd_pointer(), decoder_sink_should_reject_null_input_pointer(), decoder_sink_should_sink_data_when_preconditions_hold(), encoder_alloc_should_reject_invalid_arguments(), encoder_finish_should_reject_nulls(), 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(), and small_input_buffer_should_not_impact_decoder_correctness().
#define PASSm GREATEST_PASSm |
Definition at line 580 of file greatest.h.
#define RUN_SUITE GREATEST_RUN_SUITE |
Definition at line 568 of file greatest.h.
Referenced by main().
#define RUN_TEST GREATEST_RUN_TEST |
Definition at line 566 of file greatest.h.
Referenced by SUITE().
#define RUN_TEST1 GREATEST_RUN_TEST1 |
Definition at line 567 of file greatest.h.
#define RUN_TESTp GREATEST_RUN_TESTp |
Definition at line 588 of file greatest.h.
Referenced by SUITE().
#define SET_SETUP GREATEST_SET_SETUP_CB |
Definition at line 583 of file greatest.h.
#define SET_TEARDOWN GREATEST_SET_TEARDOWN_CB |
Definition at line 584 of file greatest.h.
#define SKIP GREATEST_SKIP |
Definition at line 579 of file greatest.h.
#define SKIPm GREATEST_SKIPm |
Definition at line 582 of file greatest.h.
#define SUITE GREATEST_SUITE |
Definition at line 565 of file greatest.h.
#define TEST GREATEST_TEST |
Definition at line 564 of file greatest.h.
typedef struct greatest_run_info greatest_run_info |
typedef void() greatest_setup_cb(void *udata) |
Definition at line 120 of file greatest.h.
typedef void() greatest_suite_cb(void) |
Definition at line 116 of file greatest.h.
typedef struct greatest_suite_info greatest_suite_info |
typedef void() greatest_teardown_cb(void *udata) |
Definition at line 121 of file greatest.h.
enum GREATEST_FLAG |
Enumerator | |
---|---|
GREATEST_FLAG_VERBOSE | |
GREATEST_FLAG_FIRST_FAIL | |
GREATEST_FLAG_LIST_ONLY |
Definition at line 123 of file greatest.h.
void greatest_do_fail | ( | const char * | name | ) |
void greatest_do_pass | ( | const char * | name | ) |
void greatest_do_skip | ( | const char * | name | ) |
void greatest_post_test | ( | const char * | name, |
int | res | ||
) |
int greatest_pre_test | ( | const char * | name | ) |
void GREATEST_SET_SETUP_CB | ( | greatest_setup_cb * | cb, |
void * | udata | ||
) |
void GREATEST_SET_TEARDOWN_CB | ( | greatest_teardown_cb * | cb, |
void * | udata | ||
) |
void greatest_usage | ( | const char * | name | ) |
greatest_run_info greatest_info |