|
static void | testConstructor () |
| A simple test which calls the default constructor and checks that the backend is closed. More...
|
|
Definition at line 97 of file testPcieBackend.cpp.
◆ PcieBackendTest()
PcieBackendTest::PcieBackendTest |
( |
std::string const & |
deviceFileName, |
|
|
unsigned int |
slot |
|
) |
| |
◆ testClose()
void PcieBackendTest::testClose |
( |
| ) |
|
◆ testConstructor()
void PcieBackendTest::testConstructor |
( |
| ) |
|
|
static |
A simple test which calls the default constructor and checks that the backend is closed.
We keep this separate because in principle constructors might throw, and this should explicitly be tested. But not within the instances of the test class, so it's a static function.
Definition at line 236 of file testPcieBackend.cpp.
◆ testCreateBackend()
void PcieBackendTest::testCreateBackend |
( |
| ) |
|
Try creating a non existing backend
Try creating an existing backend
Backend should not be in open state
Definition at line 469 of file testPcieBackend.cpp.
◆ testFailIfBackendClosed()
void PcieBackendTest::testFailIfBackendClosed |
( |
| ) |
|
Test that all functions throw an exception if the backend is not opened.
◆ testFailIfClosed()
void PcieBackendTest::testFailIfClosed |
( |
| ) |
|
Tests whether openig of the backend works, and that the exception is thrown correctly if the backend cannot be opened.
◆ testOpen()
void PcieBackendTest::testOpen |
( |
| ) |
|
◆ testRead()
void PcieBackendTest::testRead |
( |
| ) |
|
◆ testReadDeviceInfo()
void PcieBackendTest::testReadDeviceInfo |
( |
| ) |
|
◆ testReadDMA()
void PcieBackendTest::testReadDMA |
( |
| ) |
|
◆ testReadRegister()
void PcieBackendTest::testReadRegister |
( |
| ) |
|
There has to be an exception if the bar is wrong. 6 is definitely out of range.
Definition at line 403 of file testPcieBackend.cpp.
◆ testWriteArea()
void PcieBackendTest::testWriteArea |
( |
| ) |
|
◆ testWriteDMA()
void PcieBackendTest::testWriteDMA |
( |
| ) |
|
◆ testWriteRegister()
void PcieBackendTest::testWriteRegister |
( |
| ) |
|
The documentation for this class was generated from the following file: