mavtables  0.2.1
MAVLink router and firewall.
Functions | Variables
test_MAVAddress.cpp File Reference
#include <stdexcept>
#include <utility>
#include <catch.hpp>
#include "MAVAddress.hpp"
#include "utility.hpp"
Include dependency graph for test_MAVAddress.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("MAVAddress's store a system and component ID.", "[MAVAddress]")
 
 TEST_CASE ("MAVAddress's are comparable.", "[MAVAddress]")
 
 TEST_CASE ("MAVAddress's can be constructed from a numeric address.", "[MAVAddress]")
 
 TEST_CASE ("MAVAddress's can be constructed from System and Component ID's.", "[MAVAddress]")
 
 TEST_CASE ("MAVAddress's can be constructed from strings.", "[MAVAddress]")
 
 TEST_CASE ("MAVAddress's are copyable.", "[MAVAddress]")
 
 TEST_CASE ("MAVAddress's are movable.", "[MAVAddress]")
 
 TEST_CASE ("MAVAddress's are assignable.", "[MAVAddress]")
 
 TEST_CASE ("MAVAddress's are printable", "[MAVAddress]")
 

Variables

MAVAddress address_b (255, 255)
 
 address_a = std::move(address_b)
 

Function Documentation

◆ TEST_CASE() [1/9]

TEST_CASE ( "MAVAddress's store a system and component ID."  ,
""  [MAVAddress] 
)

Definition at line 27 of file test_MAVAddress.cpp.

◆ TEST_CASE() [2/9]

TEST_CASE ( "MAVAddress's are comparable."  ,
""  [MAVAddress] 
)

Definition at line 48 of file test_MAVAddress.cpp.

◆ TEST_CASE() [3/9]

TEST_CASE ( "MAVAddress's can be constructed from a numeric address."  ,
""  [MAVAddress] 
)

Definition at line 145 of file test_MAVAddress.cpp.

◆ TEST_CASE() [4/9]

TEST_CASE ( "MAVAddress's can be constructed from System and Component ID's."  ,
""  [MAVAddress] 
)

Definition at line 163 of file test_MAVAddress.cpp.

◆ TEST_CASE() [5/9]

TEST_CASE ( "MAVAddress's can be constructed from strings."  ,
""  [MAVAddress] 
)

Definition at line 195 of file test_MAVAddress.cpp.

◆ TEST_CASE() [6/9]

TEST_CASE ( "MAVAddress's are copyable."  ,
""  [MAVAddress] 
)

Definition at line 264 of file test_MAVAddress.cpp.

References address_a, and address_b.

◆ TEST_CASE() [7/9]

TEST_CASE ( "MAVAddress's are movable."  ,
""  [MAVAddress] 
)

Definition at line 277 of file test_MAVAddress.cpp.

References address_a, and address_b.

◆ TEST_CASE() [8/9]

TEST_CASE ( "MAVAddress's are assignable."  ,
""  [MAVAddress] 
)

Definition at line 288 of file test_MAVAddress.cpp.

References address_a, and address_b.

◆ TEST_CASE() [9/9]

TEST_CASE ( "MAVAddress's are printable"  ,
""  [MAVAddress] 
)

Definition at line 308 of file test_MAVAddress.cpp.

Variable Documentation

◆ address_a

address_a = std::move(address_b)

Definition at line 303 of file test_MAVAddress.cpp.

◆ address_b

MAVAddress address_b(255, 255)
Initial value: