![]() |
ChimeraTK-DeviceAccess 03.25.00
|
#include <boost/test/unit_test.hpp>#include "DeviceBackendImpl.h"#include "NDRegisterAccessor.h"#include "NDRegisterAccessorDecorator.h"#include "TransferElementTestAccessor.h"#include <boost/make_shared.hpp>
Include dependency graph for testTransferElement.cpp:Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_DYN_LINK |
| #define | BOOST_TEST_MODULE TransferElementTest |
| #define | TEST_TRANSFER_SEQUENCE(transferElement, expectedType, expectTransferExecution) |
| Helper macro for test_B_4 to avoid code duplication. | |
Functions | |
| BOOST_AUTO_TEST_CASE (B_3_1_2_4) | |
| Test the return values of readNonBlocking()/readLatest() for synchronous reads. | |
| BOOST_AUTO_TEST_CASE (test_B_3_1_3_1) | |
| Test read() blocks until data available. | |
| BOOST_AUTO_TEST_CASE (test_B_3_1_3_2) | |
| Test readNonBlocking() returns data availability. | |
| BOOST_AUTO_TEST_CASE (B_3_1_4) | |
| Test the convenience function readLatest(). | |
| BOOST_AUTO_TEST_CASE (test_B_4) | |
| Test order of stages in high-level functions. | |
| BOOST_AUTO_TEST_CASE (test_B_4_1) | |
| Test preXxx. | |
| BOOST_AUTO_TEST_CASE (test_B_4_2_1) | |
| Test readTransfer() | |
| BOOST_AUTO_TEST_CASE (test_B_4_2_2) | |
| Test readTransferNonBlocking() | |
| BOOST_AUTO_TEST_CASE (test_B_4_2_3) | |
| Test writeTransfer()/writeTransferDestructively() | |
| BOOST_AUTO_TEST_CASE (test_B_4_3) | |
| Test postXxx. | |
| BOOST_AUTO_TEST_CASE (B_4_3_2) | |
| Test that the current VersionNumber is updated in postWrite. | |
| BOOST_AUTO_TEST_CASE (test_B_5_1) | |
| Test pre/post paring for exceptions. | |
| BOOST_AUTO_TEST_CASE (test_B_5_2) | |
| Test that duplicate calls to preXxx/postXxx are ignored. | |
| BOOST_AUTO_TEST_CASE (test_B_6_1) | |
| Test skipping transfer if exception in preXxx() | |
| BOOST_AUTO_TEST_CASE (test_B_6_2) | |
| Test xxxYyy() catches exceptions, not preXxx()/xxxTransferYyy() (outermost decorator sees exception) | |
| BOOST_AUTO_TEST_CASE (test_B_7_2) | |
| Test return of writeTransfer and writeTransferDestructively. | |
| BOOST_AUTO_TEST_CASE (test_B_7_3) | |
| Test updateBuffer argument in postRead without exceptions. | |
| BOOST_AUTO_TEST_CASE (test_B_7_4) | |
| Test postRead updateDataBuffer argument in case of exceptions. | |
| BOOST_AUTO_TEST_CASE (B_8_2) | |
| Test the _readQueue access in read()/readNonBlocking() | |
| BOOST_AUTO_TEST_CASE (B_8_2_2) | |
| Test the DiscadValueException in async read operations. | |
| BOOST_AUTO_TEST_CASE (B_8_3) | |
| Test exceptions on _readQueue in readTransfer()/readTransferNonBlocking() | |
| BOOST_AUTO_TEST_CASE (B_8_6_1) | |
| Test interrupt() places boost::thread_interrupted exception onto _readQueue. | |
| BOOST_AUTO_TEST_CASE (B_8_6_2) | |
| Test interrupt() interrupts any read operation. | |
| BOOST_AUTO_TEST_CASE (test_B_8_6_3) | |
| Test pre/post paring for interrupt() | |
| BOOST_AUTO_TEST_CASE (test_B_8_6_4) | |
| Test normal functioning after interrupt() | |
| BOOST_AUTO_TEST_CASE (test_B_11_3) | |
| Test getVersionNumber() | |
| BOOST_AUTO_TEST_CASE (B_11_4_1) | |
| Test write with older version number throws. | |
| BOOST_AUTO_TEST_CASE (B_11_4_2) | |
| Test VersionNumber argument of doPreWrite and doWriteTransfer. | |
| BOOST_AUTO_TEST_CASE (test_B_11_5) | |
| Test getVersionNumber() does not change under exception in a write opreration (for reads this must be checked in the UnifiedBackendTest). | |
| BOOST_AUTO_TEST_CASE (test_B_11_6) | |
| Test value after construction for the version number. | |
| BOOST_AUTO_TEST_CASE (test_B_15_2) | |
| Test getAccessModeFlags() | |
| BOOST_AUTO_TEST_CASE (test_B_15_3) | |
| Test access mode flags via constructor. | |
| BOOST_AUTO_TEST_CASE (test_B_15_3_1) | |
| Test TransferElement has no default constructor. | |
| BOOST_AUTO_TEST_CASE (test_B_16_1) | |
| Test _activeException. | |
| BOOST_AUTO_TEST_CASE (test_B_16_2) | |
| Test exception rethrowing in postXxx() | |
| BOOST_AUTO_TEST_CASE (test_B_16_3) | |
| Test setActiveException() | |
| #define BOOST_TEST_DYN_LINK |
Definition at line 19 of file testTransferElement.cpp.
| #define BOOST_TEST_MODULE TransferElementTest |
Definition at line 20 of file testTransferElement.cpp.
| #define TEST_TRANSFER_SEQUENCE | ( | transferElement, | |
| expectedType, | |||
| expectTransferExecution | |||
| ) |
Helper macro for test_B_4 to avoid code duplication.
Do not use for other tests.
Definition at line 152 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_11_4_1 | ) |
Test write with older version number throws.
Definition at line 1210 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_11_4_2 | ) |
Test VersionNumber argument of doPreWrite and doWriteTransfer.
Definition at line 1227 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_3_1_2_4 | ) |
Test the return values of readNonBlocking()/readLatest() for synchronous reads.
Definition at line 39 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_3_1_4 | ) |
Test the convenience function readLatest().
This tests the TransferElement specifications:
Definition at line 106 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_4_3_2 | ) |
Test that the current VersionNumber is updated in postWrite.
Definition at line 445 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_8_2 | ) |
Test the _readQueue access in read()/readNonBlocking()
Actually: this tests the access specifically in readTransfer()/readTransferNonBlocking(). The spec should be changed accordingly...
Definition at line 974 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_8_2_2 | ) |
Test the DiscadValueException in async read operations.
Definition at line 1002 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_8_3 | ) |
Test exceptions on _readQueue in readTransfer()/readTransferNonBlocking()
Definition at line 1033 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_8_6_1 | ) |
Test interrupt() places boost::thread_interrupted exception onto _readQueue.
Definition at line 1074 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | B_8_6_2 | ) |
Test interrupt() interrupts any read operation.
Definition at line 1087 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_11_3 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_11_5 | ) |
Test getVersionNumber() does not change under exception in a write opreration (for reads this must be checked in the UnifiedBackendTest).
Definition at line 1253 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_11_6 | ) |
Test value after construction for the version number.
Notes:
Definition at line 1299 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_15_2 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_15_3 | ) |
Test access mode flags via constructor.
Definition at line 1332 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_15_3_1 | ) |
Test TransferElement has no default constructor.
Definition at line 1357 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_16_1 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_16_2 | ) |
Test exception rethrowing in postXxx()
Definition at line 1440 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_16_3 | ) |
Test setActiveException()
Definition at line 1488 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_3_1_3_1 | ) |
Test read() blocks until data available.
Definition at line 58 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_3_1_3_2 | ) |
Test readNonBlocking() returns data availability.
Definition at line 81 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_4 | ) |
Test order of stages in high-level functions.
Definition at line 211 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_4_1 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_4_2_1 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_4_2_2 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_4_2_3 | ) |
Test writeTransfer()/writeTransferDestructively()
Definition at line 370 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_4_3 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_5_1 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_B_5_2 | ) |
Test that duplicate calls to preXxx/postXxx are ignored.
Definition at line 593 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_6_1 | ) |
Test skipping transfer if exception in preXxx()
Definition at line 630 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_6_2 | ) |
Test xxxYyy() catches exceptions, not preXxx()/xxxTransferYyy() (outermost decorator sees exception)
Definition at line 716 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_7_2 | ) |
Test return of writeTransfer and writeTransferDestructively.
Definition at line 837 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_7_3 | ) |
Test updateBuffer argument in postRead without exceptions.
Definition at line 883 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_7_4 | ) |
Test postRead updateDataBuffer argument in case of exceptions.
Definition at line 920 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_8_6_3 | ) |
Test pre/post paring for interrupt()
Definition at line 1128 of file testTransferElement.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_B_8_6_4 | ) |
Test normal functioning after interrupt()
Definition at line 1150 of file testTransferElement.cpp.