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

Go to the source code of this file.

Functions

 TEST_CASE ("If's are constructable.", "[If]")
 
 TEST_CASE ("If's are comparable.", "[If]")
 
 TEST_CASE ("If's are copyable.", "[If]")
 
 TEST_CASE ("If's are movable.", "[If]")
 
 TEST_CASE ("If's are assignable.", "[If]")
 
 TEST_CASE ("If's 'check' method determines if a packet and destination" "address matches the conditional.", "[If]")
 
 TEST_CASE ("If's 'type' method sets the packet ID for matching.", "[If]")
 
 TEST_CASE ("If's 'from' method sets the source subnet to match.", "[If]")
 
 TEST_CASE ("If's 'to' method sets the source subnet to match.", "[If]")
 
 TEST_CASE ("If's are printable.", "[If]")
 

Variables

If if_b (11, MAVSubnet("255.255"), {})
 
 if_a = std::move(if_b)
 

Function Documentation

◆ TEST_CASE() [1/10]

TEST_CASE ( "If's are constructable."  ,
""  [If] 
)

Definition at line 34 of file test_If.cpp.

◆ TEST_CASE() [2/10]

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

Definition at line 68 of file test_If.cpp.

◆ TEST_CASE() [3/10]

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

Definition at line 139 of file test_If.cpp.

◆ TEST_CASE() [4/10]

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

Definition at line 147 of file test_If.cpp.

◆ TEST_CASE() [5/10]

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

Definition at line 155 of file test_If.cpp.

References if_a, and if_b.

◆ TEST_CASE() [6/10]

TEST_CASE ( "If's 'check' method determines if a packet and destination" "address matches the conditional."  ,
""  [If] 
)

Definition at line 175 of file test_If.cpp.

◆ TEST_CASE() [7/10]

TEST_CASE ( "If's 'type' method sets the packet ID for matching."  ,
""  [If] 
)

Definition at line 259 of file test_If.cpp.

◆ TEST_CASE() [8/10]

TEST_CASE ( "If's 'from' method sets the source subnet to match."  ,
""  [If] 
)

Definition at line 300 of file test_If.cpp.

◆ TEST_CASE() [9/10]

TEST_CASE ( "If's 'to' method sets the source subnet to match."  ,
""  [If] 
)

Definition at line 325 of file test_If.cpp.

◆ TEST_CASE() [10/10]

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

Definition at line 350 of file test_If.cpp.

Variable Documentation

◆ if_a

if_a = std::move(if_b)

Definition at line 170 of file test_If.cpp.

◆ if_b

If if_b(11, MAVSubnet("255.255"), {})
Initial value:
{
If if_a(4, {}, MAVSubnet("255.255"))
Definition: If.hpp:35
if_a
Definition: test_If.cpp:170