libwebsockets
Lightweight C library for HTML5 websockets
|
Go to the source code of this file.
Data Structures | |
struct | lws_test_sequencer_args |
Typedefs | |
typedef void(* | lws_test_sequence_cb) (const void *cb_user) |
typedef struct lws_test_sequencer_args | lws_test_sequencer_args_t |
Functions | |
LWS_VISIBLE LWS_EXTERN int | lws_abs_unit_test_sequencer (const lws_test_sequencer_args_t *args) |
struct lws_test_sequencer_args |
Definition at line 29 of file lws-test-sequencer.h.
Data Fields | ||
---|---|---|
lws_abs_t * | abs | |
lws_unit_test_t * | tests | |
int * | results | |
int | results_max | |
int * | count_tests | |
int * | count_passes | |
lws_test_sequence_cb | cb | |
void * | cb_user |
typedef void(* lws_test_sequence_cb) (const void *cb_user) |
Definition at line 27 of file lws-test-sequencer.h.
typedef struct lws_test_sequencer_args lws_test_sequencer_args_t |
LWS_VISIBLE LWS_EXTERN int lws_abs_unit_test_sequencer | ( | const lws_test_sequencer_args_t * | args | ) |
lws_abs_unit_test_sequencer() - helper to sequence multiple unit tests
args | lws_test_sequencer_args_t prepared with arguments for the tests |
This helper sequences one or more unit tests to run and collects the results.
The incoming abs should be set up for the abstract protocol you want to test and the lws unit-test transport.
Results are one of
LPE_SUCCEEDED LPE_FAILED LPE_FAILED_UNEXPECTED_TIMEOUT LPE_FAILED_UNEXPECTED_PASS LPE_FAILED_UNEXPECTED_CLOSE
The callback args->cb is called when the tests have been done.