mavtables  0.2.1
MAVLink router and firewall.
Functions
test_UnixSerialPort.cpp File Reference
#include <chrono>
#include <cstdint>
#include <cstring>
#include <stdexcept>
#include <string>
#include <system_error>
#include <catch.hpp>
#include <errno.h>
#include <fakeit.hpp>
#include "PartialSendError.hpp"
#include "UnixSerialPort.hpp"
#include "UnixSyscalls.hpp"
#include "utility.hpp"
#include "common.hpp"
Include dependency graph for test_UnixSerialPort.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("UnixSerialPort's open and configure a serial port on construction" "and closes the port on destruction.", "[UnixSerialPort]")
 
 TEST_CASE ("UnixSerialPort's open method configures the baud rate.", "[UnixSerialPort]")
 
 TEST_CASE ("UnixSerialPort's 'read' method receives data on the socket.", "[UnixSerialPort]")
 
 TEST_CASE ("UnixSerialPort's 'write' method sends data over the serial port.", "[UnixSerialPort]")
 
 TEST_CASE ("UnixSerialPort's are printable.", "[UnixSerialPort]")
 

Function Documentation

◆ TEST_CASE() [1/5]

TEST_CASE ( "UnixSerialPort's open and configure a serial port on construction" "and closes the port on destruction."  ,
""  [UnixSerialPort] 
)

Definition at line 40 of file test_UnixSerialPort.cpp.

◆ TEST_CASE() [2/5]

TEST_CASE ( "UnixSerialPort's open method configures the baud rate."  ,
""  [UnixSerialPort] 
)

Definition at line 303 of file test_UnixSerialPort.cpp.

◆ TEST_CASE() [3/5]

TEST_CASE ( "UnixSerialPort's 'read' method receives data on the socket."  ,
""  [UnixSerialPort] 
)

Definition at line 524 of file test_UnixSerialPort.cpp.

References SerialPort::DEFAULT, and mock_unique().

Here is the call graph for this function:

◆ TEST_CASE() [4/5]

TEST_CASE ( "UnixSerialPort's 'write' method sends data over the serial port."  ,
""  [UnixSerialPort] 
)

Definition at line 742 of file test_UnixSerialPort.cpp.

References SerialPort::DEFAULT, and mock_unique().

Here is the call graph for this function:

◆ TEST_CASE() [5/5]

TEST_CASE ( "UnixSerialPort's are printable."  ,
""  [UnixSerialPort] 
)

Definition at line 819 of file test_UnixSerialPort.cpp.