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

Go to the source code of this file.

Functions

 TEST_CASE ("MAVSubnet's are comparable.", "[MAVSubnet]")
 
 TEST_CASE ("MAVSubnet's can be constructed from a MAVLink address " "and a numeric mask.", "[MAVSubnet]")
 
 TEST_CASE ("MAVSubnet's can be constructed from a MAVLink address, " "system mask, and component mask.", "[MAVSubnet]")
 
 TEST_CASE ("MAVSubnet's can be constructed from strings.", "[MAVSubnet]")
 
 TEST_CASE ("MAVSubnet's are copyable.", "[MAVSubnet]")
 
 TEST_CASE ("MAVSubnet's are movable.", "[MAVSubnet]")
 
 TEST_CASE ("MAVSubnet's are assignable.", "[MAVSubnet]")
 
 TEST_CASE ("MAVSubnet's are printable.", "[MAVSubnet]")
 
 TEST_CASE ("The 'contains' method determines if a MAVLink address " "is in the subnet.", "[MAVSubnet]")
 

Variables

MAVSubnet subnet_b (MAVAddress(0xFFFF), 255, 255)
 
 subnet_a = std::move(subnet_b)
 

Function Documentation

◆ TEST_CASE() [1/9]

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

Definition at line 28 of file test_MAVSubnet.cpp.

◆ TEST_CASE() [2/9]

TEST_CASE ( "MAVSubnet's can be constructed from a MAVLink address " "and a numeric mask."  ,
""  [MAVSubnet] 
)

Definition at line 75 of file test_MAVSubnet.cpp.

◆ TEST_CASE() [3/9]

TEST_CASE ( "MAVSubnet's can be constructed from a MAVLink  address,
" "system  mask,
and component mask."  ,
""  [MAVSubnet] 
)

Definition at line 96 of file test_MAVSubnet.cpp.

◆ TEST_CASE() [4/9]

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

Definition at line 143 of file test_MAVSubnet.cpp.

◆ TEST_CASE() [5/9]

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

Definition at line 285 of file test_MAVSubnet.cpp.

References subnet_a, and subnet_b.

◆ TEST_CASE() [6/9]

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

Definition at line 298 of file test_MAVSubnet.cpp.

References subnet_a, and subnet_b.

◆ TEST_CASE() [7/9]

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

Definition at line 309 of file test_MAVSubnet.cpp.

References subnet_a, and subnet_b.

◆ TEST_CASE() [8/9]

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

Definition at line 329 of file test_MAVSubnet.cpp.

◆ TEST_CASE() [9/9]

TEST_CASE ( "The 'contains' method determines if a MAVLink address " "is in the subnet."  ,
""  [MAVSubnet] 
)

Definition at line 362 of file test_MAVSubnet.cpp.

Variable Documentation

◆ subnet_a

subnet_a = std::move(subnet_b)

Definition at line 324 of file test_MAVSubnet.cpp.

◆ subnet_b

MAVSubnet subnet_b(MAVAddress(0xFFFF), 255, 255)
Initial value: