|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Functions | |
| void | setUp (void) |
| void | tearDown (void) |
| static void | test_probe_ok_when_chip_present (void) |
| static void | test_probe_reports_not_found_when_chip_missing (void) |
| static void | test_receive_with_nothing_waiting_returns_no_data (void) |
| static void | test_receive_returns_injected_packet_with_its_length (void) |
| static void | test_receive_is_first_in_first_out (void) |
| static void | test_receive_keeps_working_after_queue_wraps (void) |
| static void | test_inject_refuses_when_queue_full (void) |
| static void | test_inject_refuses_empty_packet (void) |
| static void | test_receive_drops_packet_bigger_than_buffer (void) |
| static void | test_send_is_visible_to_the_test (void) |
| static void | test_reset_forgets_what_was_sent (void) |
| static void | test_send_counts_each_packet (void) |
| static void | test_send_fails_when_chip_missing (void) |
| static void | test_send_gives_the_failure_the_test_asks_for (void) |
| int | main (void) |
| int main | ( | void | ) |
Definition at line 160 of file test_main.cpp.
References test_inject_refuses_empty_packet(), test_inject_refuses_when_queue_full(), test_probe_ok_when_chip_present(), test_probe_reports_not_found_when_chip_missing(), test_receive_drops_packet_bigger_than_buffer(), test_receive_is_first_in_first_out(), test_receive_keeps_working_after_queue_wraps(), test_receive_returns_injected_packet_with_its_length(), test_receive_with_nothing_waiting_returns_no_data(), test_reset_forgets_what_was_sent(), test_send_counts_each_packet(), test_send_fails_when_chip_missing(), test_send_gives_the_failure_the_test_asks_for(), and test_send_is_visible_to_the_test().
| void setUp | ( | void | ) |
Definition at line 12 of file test_main.cpp.
References radio_link::fake::reset().
| void tearDown | ( | void | ) |
Definition at line 15 of file test_main.cpp.
|
static |
Definition at line 94 of file test_main.cpp.
References radio_link::fake::inject(), radio_link::NoData, and radio_link::radio_receive().
Referenced by main().
|
static |
Definition at line 79 of file test_main.cpp.
References radio_link::fake::inject(), radio_link::NoData, radio_link::Ok, and radio_link::radio_receive().
Referenced by main().
|
static |
Definition at line 18 of file test_main.cpp.
References radio_link::Ok, radio_link::radio_probe(), and radio_link::fake::reset().
Referenced by main().
|
static |
Definition at line 23 of file test_main.cpp.
References radio_link::ErrNotFound, radio_link::radio_probe(), and radio_link::fake::reset().
Referenced by main().
|
static |
Definition at line 102 of file test_main.cpp.
References radio_link::ErrTooLong, radio_link::fake::inject(), radio_link::NoData, and radio_link::radio_receive().
Referenced by main().
|
static |
Definition at line 47 of file test_main.cpp.
References a, b, radio_link::fake::inject(), radio_link::Ok, and radio_link::radio_receive().
Referenced by main().
|
static |
Definition at line 65 of file test_main.cpp.
References radio_link::fake::inject(), radio_link::NoData, radio_link::Ok, and radio_link::radio_receive().
Referenced by main().
|
static |
Definition at line 35 of file test_main.cpp.
References radio_link::fake::inject(), radio_link::NoData, radio_link::Ok, and radio_link::radio_receive().
Referenced by main().
|
static |
Definition at line 28 of file test_main.cpp.
References radio_link::NoData, and radio_link::radio_receive().
Referenced by main().
|
static |
Definition at line 123 of file test_main.cpp.
References back(), radio_link::fake::last_sent(), radio_link::Ok, radio_link::radio_send(), radio_link::fake::reset(), and radio_link::fake::sent_count().
Referenced by main().
|
static |
Definition at line 132 of file test_main.cpp.
References a, b, back(), radio_link::fake::last_sent(), radio_link::Ok, radio_link::radio_send(), and radio_link::fake::sent_count().
Referenced by main().
|
static |
Definition at line 143 of file test_main.cpp.
References radio_link::ErrNotFound, radio_link::radio_send(), radio_link::fake::reset(), and radio_link::fake::sent_count().
Referenced by main().
|
static |
Definition at line 150 of file test_main.cpp.
References radio_link::ErrTooLong, radio_link::Ok, radio_link::radio_send(), radio_link::fake::reset(), radio_link::fake::sent_count(), and radio_link::fake::set_send_result().
Referenced by main().
|
static |
Definition at line 114 of file test_main.cpp.
References back(), radio_link::fake::last_sent(), radio_link::Ok, and radio_link::radio_send().
Referenced by main().