|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <unity.h>#include <cstring>#include <vector>#include "DiabloEnums.h"#include "DiabloPacketUtils.h"#include "DiabloPackets.h"#include "DiabloPacketUtils.cpp"Go to the source code of this file.
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 543 of file test_packet_roundtrip.cpp.
References test_abort_done_buffer_too_small(), test_abort_done_roundtrip(), test_actuator_command_empty_list(), test_actuator_command_roundtrip(), test_actuator_config_no_pts(), test_actuator_config_roundtrip(), test_board_heartbeat_buffer_too_small(), test_board_heartbeat_parse_wrong_type(), test_board_heartbeat_roundtrip(), test_log_packet_buffer_too_small(), test_log_packet_layout(), test_log_packet_parse_truncated(), test_log_packet_parse_wrong_type(), test_log_packet_roundtrip(), test_parse_null_buffer(), test_pwm_actuator_roundtrip(), test_self_test_adc_bad(), test_self_test_roundtrip(), test_sensor_config_empty_sensors(), test_sensor_config_roundtrip_with_abort(), test_sensor_config_roundtrip_without_abort(), test_sensor_data_buffer_too_small(), test_sensor_data_roundtrip(), and test_server_heartbeat_roundtrip().
| void setUp | ( | void | ) |
Definition at line 538 of file test_packet_roundtrip.cpp.
| void tearDown | ( | void | ) |
Definition at line 540 of file test_packet_roundtrip.cpp.
| void test_abort_done_buffer_too_small | ( | ) |
Definition at line 430 of file test_packet_roundtrip.cpp.
References daq::create_abort_done_packet().
Referenced by main().
| void test_abort_done_roundtrip | ( | ) |
Definition at line 416 of file test_packet_roundtrip.cpp.
References daq::ABORT_DONE, daq::create_abort_done_packet(), and daq::parse_abort_done_packet().
Referenced by main().
| void test_actuator_command_empty_list | ( | ) |
Definition at line 182 of file test_packet_roundtrip.cpp.
References daq::create_actuator_command_packet().
Referenced by main().
| void test_actuator_command_roundtrip | ( | ) |
Definition at line 156 of file test_packet_roundtrip.cpp.
References daq::create_actuator_command_packet(), and daq::parse_actuator_command_packet().
Referenced by main().
| void test_actuator_config_no_pts | ( | ) |
Definition at line 340 of file test_packet_roundtrip.cpp.
References daq::create_actuator_config_packet(), and daq::parse_actuator_config_packet().
Referenced by main().
| void test_actuator_config_roundtrip | ( | ) |
Definition at line 306 of file test_packet_roundtrip.cpp.
References daq::create_actuator_config_packet(), and daq::parse_actuator_config_packet().
Referenced by main().
| void test_board_heartbeat_buffer_too_small | ( | ) |
Definition at line 49 of file test_packet_roundtrip.cpp.
References daq::create_board_heartbeat_packet().
Referenced by main().
| void test_board_heartbeat_parse_wrong_type | ( | ) |
Definition at line 56 of file test_packet_roundtrip.cpp.
References daq::create_board_heartbeat_packet(), daq::parse_board_heartbeat_packet(), and daq::SENSOR_DATA.
Referenced by main().
| void test_board_heartbeat_roundtrip | ( | ) |
Packet round-trip unit tests — DAQv2-Comms serialization / parsing.
For each packet type: create → parse → verify all fields match. Also tests buffer-too-small and edge cases.
Definition at line 24 of file test_packet_roundtrip.cpp.
References daq::ACTIVE, daq::BOARD_HEARTBEAT, daq::create_board_heartbeat_packet(), daq::FIRING, and daq::parse_board_heartbeat_packet().
Referenced by main().
| void test_log_packet_buffer_too_small | ( | ) |
Definition at line 475 of file test_packet_roundtrip.cpp.
References daq::create_log_packet().
Referenced by main().
| void test_log_packet_layout | ( | ) |
Definition at line 456 of file test_packet_roundtrip.cpp.
References daq::create_log_packet(), and daq::LOGS.
Referenced by main().
| void test_log_packet_parse_truncated | ( | ) |
Definition at line 503 of file test_packet_roundtrip.cpp.
References daq::create_log_packet(), and daq::parse_log_packet().
Referenced by main().
| void test_log_packet_parse_wrong_type | ( | ) |
Definition at line 519 of file test_packet_roundtrip.cpp.
References daq::create_board_heartbeat_packet(), and daq::parse_log_packet().
Referenced by main().
| void test_log_packet_roundtrip | ( | ) |
Definition at line 482 of file test_packet_roundtrip.cpp.
References daq::create_log_packet(), daq::LOGS, and daq::parse_log_packet().
Referenced by main().
| void test_parse_null_buffer | ( | ) |
Definition at line 439 of file test_packet_roundtrip.cpp.
References chunks, daq::parse_actuator_command_packet(), daq::parse_board_heartbeat_packet(), and daq::parse_sensor_data_packet().
Referenced by main().
| void test_pwm_actuator_roundtrip | ( | ) |
Definition at line 193 of file test_packet_roundtrip.cpp.
References daq::create_pwm_actuator_packet(), and daq::parse_pwm_actuator_packet().
Referenced by main().
| void test_self_test_adc_bad | ( | ) |
Definition at line 394 of file test_packet_roundtrip.cpp.
References daq::create_self_test_packet(), and daq::parse_self_test_packet().
Referenced by main().
| void test_self_test_roundtrip | ( | ) |
Definition at line 368 of file test_packet_roundtrip.cpp.
References daq::create_self_test_packet(), daq::parse_self_test_packet(), and result.
Referenced by main().
| void test_sensor_config_empty_sensors | ( | ) |
Definition at line 285 of file test_packet_roundtrip.cpp.
References daq::create_sensor_config_packet(), and daq::parse_sensor_config_packet().
Referenced by main().
| void test_sensor_config_roundtrip_with_abort | ( | ) |
Definition at line 223 of file test_packet_roundtrip.cpp.
References daq::create_sensor_config_packet(), and daq::parse_sensor_config_packet().
Referenced by main().
| void test_sensor_config_roundtrip_without_abort | ( | ) |
Definition at line 256 of file test_packet_roundtrip.cpp.
References daq::create_sensor_config_packet(), and daq::parse_sensor_config_packet().
Referenced by main().
| void test_sensor_data_buffer_too_small | ( | ) |
Definition at line 140 of file test_packet_roundtrip.cpp.
References daq::SensorDataChunkCollection::add_datapoint(), chunks, and daq::create_sensor_data_packet().
Referenced by main().
| void test_sensor_data_roundtrip | ( | ) |
Definition at line 101 of file test_packet_roundtrip.cpp.
References daq::SensorDataChunkCollection::add_datapoint(), chunks, daq::create_sensor_data_packet(), and daq::parse_sensor_data_packet().
Referenced by main().
| void test_server_heartbeat_roundtrip | ( | ) |
Definition at line 74 of file test_packet_roundtrip.cpp.
References daq::LOX_FILL, daq::parse_server_heartbeat_packet(), and daq::SERVER_HEARTBEAT.
Referenced by main().