fix tests from merge

This commit is contained in:
maliakal_d 2025-03-17 15:45:59 +01:00
parent ec4eb1978e
commit f4626c2c81

View File

@ -39,8 +39,8 @@ class GeneralDataTest : public GeneralData {
// dummy DataProcessor class for testing // dummy DataProcessor class for testing
class DataProcessorTest : public DataProcessor { class DataProcessorTest : public DataProcessor {
public: public:
DataProcessorTest() : DataProcessor(0){}; DataProcessorTest() : DataProcessor(0) {};
~DataProcessorTest(){}; ~DataProcessorTest() {};
void ArrangeDbitData(size_t &size, char *data) { void ArrangeDbitData(size_t &size, char *data) {
DataProcessor::ArrangeDbitData(size, data); DataProcessor::ArrangeDbitData(size, data);
} }
@ -179,7 +179,7 @@ TEST_CASE_METHOD(DataProcessorTestFixture, "Reorder all",
set_num_samples(num_samples); set_num_samples(num_samples);
set_data(); set_data();
dataprocessor->SetReorder(true); // set reorder to true dataprocessor->SetCtbDbitReorder(true); // set reorder to true
const size_t expected_size = const size_t expected_size =
num_analog_bytes + num_transceiver_bytes + expected_num_digital_bytes; num_analog_bytes + num_transceiver_bytes + expected_num_digital_bytes;
@ -216,7 +216,7 @@ TEST_CASE_METHOD(DataProcessorTestFixture,
set_data(); set_data();
dataprocessor->SetCtbDbitOffset(num_random_offset_bytes); dataprocessor->SetCtbDbitOffset(num_random_offset_bytes);
dataprocessor->SetReorder(true); // set reorder to true dataprocessor->SetCtbDbitReorder(true); // set reorder to true
const size_t expected_num_digital_bytes = 64; const size_t expected_num_digital_bytes = 64;
std::vector<uint8_t> expected_digital_part{0b00011111}; std::vector<uint8_t> expected_digital_part{0b00011111};
@ -266,7 +266,7 @@ TEST_CASE_METHOD(DataProcessorTestFixture, "Arrange bitlist with reorder false",
dataprocessor->SetCtbDbitList(bitlist); dataprocessor->SetCtbDbitList(bitlist);
dataprocessor->SetReorder(false); dataprocessor->SetCtbDbitReorder(false);
set_num_samples(num_samples); set_num_samples(num_samples);
set_data(); set_data();
@ -318,7 +318,7 @@ TEST_CASE_METHOD(DataProcessorTestFixture, "Arrange bitlist with reorder true",
dataprocessor->SetCtbDbitList(bitlist); dataprocessor->SetCtbDbitList(bitlist);
dataprocessor->SetReorder(true); dataprocessor->SetCtbDbitReorder(true);
set_num_samples(num_samples); set_num_samples(num_samples);
set_data(); set_data();
@ -362,7 +362,7 @@ TEST_CASE_METHOD(DataProcessorTestFixture,
dataprocessor->SetCtbDbitList(bitlist); dataprocessor->SetCtbDbitList(bitlist);
dataprocessor->SetReorder(false); dataprocessor->SetCtbDbitReorder(false);
dataprocessor->SetCtbDbitOffset(num_random_offset_bytes); dataprocessor->SetCtbDbitOffset(num_random_offset_bytes);