test_getReadoutRawString.cpp 727 B

123456789101112131415161718192021222324252627
  1. #include "test_flow_postrocess_helper.h"
  2. void test_getReadoutRawString() {
  3. // no ROIs setted up
  4. UnderTestPost* _undertestPost = setUpClassFlowPostprocessing(Digital100, Analogue100);
  5. string result = _undertestPost->flowAnalog->getReadoutRawString(0);
  6. TEST_ASSERT_EQUAL_STRING("", result.c_str());
  7. // setted value
  8. general* gen_analog = _undertestPost->flowAnalog->GetGENERAL("default", true);
  9. gen_analog->ROI.clear();
  10. roi* anaROI = new roi();
  11. string name = "ana_1";
  12. anaROI->name = name;
  13. anaROI->result_float = 5.5;
  14. gen_analog->ROI.push_back(anaROI);
  15. result = _undertestPost->flowAnalog->getReadoutRawString(0);
  16. TEST_ASSERT_EQUAL_STRING(",5.5", result.c_str());
  17. }