libwebsockets
Lightweight C library for HTML5 websockets
lws-test-sequencer.h File Reference

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)
 

Data Structure Documentation

◆ lws_test_sequencer_args

struct lws_test_sequencer_args

Definition at line 29 of file lws-test-sequencer.h.

+ Collaboration diagram for lws_test_sequencer_args:
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 Documentation

◆ lws_test_sequence_cb

typedef void(* lws_test_sequence_cb) (const void *cb_user)

Definition at line 27 of file lws-test-sequencer.h.

◆ lws_test_sequencer_args_t

Function Documentation

◆ lws_abs_unit_test_sequencer()

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

Parameters
argslws_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.