![]() |
ChimeraTK-DeviceAccess 03.25.00
|
#include <boost/test/unit_test.hpp>#include "CopyRegisterDecorator.h"#include "Device.h"#include "ExceptionDummyBackend.h"#include "NDRegisterAccessorDecorator.h"#include "NumericAddressedLowLevelTransferElement.h"#include "TransferElementTestAccessor.h"#include "TransferGroup.h"
Include dependency graph for testTransferGroup.cpp:Go to the source code of this file.
Classes | |
| struct | CountingDecorator< T > |
Macros | |
| #define | BOOST_TEST_DYN_LINK |
| #define | BOOST_TEST_MODULE TransferGroupTest |
| #define | CHECK_COUNTERS_HIGH_LEVEL(te, isWrite, expectedOrderPreMax, expectedOrderPostMin, expectTransfer) |
| #define | CHECK_COUNTERS_MID_LEVEL(te) |
| #define | CHECK_COUNTERS_LOW_LEVEL(te, isWrite, expectedOrderMin, expectedOrderMax) |
Functions | |
| boost::shared_ptr< TransferElementTestAccessor< int32_t > > | makeTETA (AccessModeFlags flags={}) |
| BOOST_AUTO_TEST_CASE (test_B_12_1_3) | |
| Tests for single specification points. | |
| BOOST_AUTO_TEST_CASE (test_B_12_3) | |
| Test that individual operations are not allowed. | |
| BOOST_AUTO_TEST_CASE (test_B_12_4) | |
| Test readOnly groups. | |
| BOOST_AUTO_TEST_CASE (test_B_12_5) | |
| Test that adding same TE twice throws. | |
| BOOST_AUTO_TEST_CASE (test_B_12_6) | |
| Test that adding same TE to two different groups throws. | |
| BOOST_AUTO_TEST_CASE (test_B_12_7) | |
| Test that adding TE with wait_for_new_data throws. | |
| BOOST_AUTO_TEST_CASE (test_B_12_8) | |
| Test optimisation with copy decorator on abstractor level. | |
| BOOST_AUTO_TEST_CASE (test_B_12_9) | |
| Test read/write operations. | |
| BOOST_AUTO_TEST_CASE (test_B_12_10_3) | |
| Test that exceptions are propagated to high-level elements. | |
| BOOST_AUTO_TEST_CASE (test_B_12_10_4) | |
| Test that all postXxx() called even when exception thrown, and exception is thrown in the end. | |
| BOOST_AUTO_TEST_CASE (test_B_12_10_5) | |
| Test that thrown exception is identical to the first error. | |
| BOOST_AUTO_TEST_CASE (test_B_12_11_1) | |
| Test that updateDataBuffer == false after exception. | |
| BOOST_AUTO_TEST_CASE (testExceptionHandling) | |
| Higher-level tests. | |
| BOOST_AUTO_TEST_CASE (testAdding) | |
| BOOST_AUTO_TEST_CASE (testCallsToPrePostFunctionsInDecorator) | |
| BOOST_AUTO_TEST_CASE (testCallsToPrePostFunctionsInLowLevel) | |
| BOOST_AUTO_TEST_CASE (testTemporaryAbstractorWorks) | |
| #define BOOST_TEST_DYN_LINK |
Definition at line 4 of file testTransferGroup.cpp.
| #define BOOST_TEST_MODULE TransferGroupTest |
Definition at line 5 of file testTransferGroup.cpp.
| #define CHECK_COUNTERS_HIGH_LEVEL | ( | te, | |
| isWrite, | |||
| expectedOrderPreMax, | |||
| expectedOrderPostMin, | |||
| expectTransfer | |||
| ) |
Definition at line 201 of file testTransferGroup.cpp.
| #define CHECK_COUNTERS_LOW_LEVEL | ( | te, | |
| isWrite, | |||
| expectedOrderMin, | |||
| expectedOrderMax | |||
| ) |
Definition at line 236 of file testTransferGroup.cpp.
| #define CHECK_COUNTERS_MID_LEVEL | ( | te | ) |
Definition at line 228 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_10_3 | ) |
Test that exceptions are propagated to high-level elements.
INCOMPLETE: Only tested for reading. Test for writing is missing.
Definition at line 302 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_10_4 | ) |
Test that all postXxx() called even when exception thrown, and exception is thrown in the end.
Definition at line 333 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_10_5 | ) |
Test that thrown exception is identical to the first error.
Attention: With spec V1.RC11 this test has become incomplete! Tests for runtime_errors in preXxx are missing.
Definition at line 402 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_11_1 | ) |
Test that updateDataBuffer == false after exception.
Definition at line 462 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_1_3 | ) |
Tests for single specification points.
Test that replaceTransferElement() is called in addElement()
Definition at line 34 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_3 | ) |
Test that individual operations are not allowed.
Definition at line 71 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_4 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_12_5 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_12_6 | ) |
Test that adding same TE to two different groups throws.
Definition at line 149 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_7 | ) |
Test that adding TE with wait_for_new_data throws.
Definition at line 164 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_8 | ) |
Test optimisation with copy decorator on abstractor level.
Definition at line 177 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_12_9 | ) |
Test read/write operations.
Definition at line 259 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | testAdding | ) |
Definition at line 570 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | testCallsToPrePostFunctionsInDecorator | ) |
Definition at line 772 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | testCallsToPrePostFunctionsInLowLevel | ) |
Definition at line 895 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | testExceptionHandling | ) |
Higher-level tests.
Definition at line 509 of file testTransferGroup.cpp.
| BOOST_AUTO_TEST_CASE | ( | testTemporaryAbstractorWorks | ) |
Definition at line 1025 of file testTransferGroup.cpp.
| boost::shared_ptr< TransferElementTestAccessor< int32_t > > makeTETA | ( | AccessModeFlags | flags = {} | ) |
Definition at line 20 of file testTransferGroup.cpp.