mavtables  0.2.1
MAVLink router and firewall.
Functions | Variables
test_Filter.cpp File Reference
#include <utility>
#include <catch.hpp>
#include <fakeit.hpp>
#include "Accept.hpp"
#include "Call.hpp"
#include "Chain.hpp"
#include "Filter.hpp"
#include "GoTo.hpp"
#include "PacketVersion2.hpp"
#include "Reject.hpp"
#include "common.hpp"
#include "common_Packet.hpp"
Include dependency graph for test_Filter.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("Filter's are constructable.", "[Filter]")
 
 TEST_CASE ("Filter's are comparable.", "[Filter]")
 
 TEST_CASE ("Filter's are copyable.", "[Filter]")
 
 TEST_CASE ("Filter's are movable.", "[Filter]")
 
 TEST_CASE ("Filter's are assignable.", "[Filter]")
 
 TEST_CASE ("Filter's 'will_accept' method determines whether to accept or " "reject a packet/address combination.", "[Filter]")
 

Variables

auto filter_b = Filter(Chain("test_chain_b"))
 
 filter_a = std::move(filter_b)
 

Function Documentation

◆ TEST_CASE() [1/6]

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

Definition at line 35 of file test_Filter.cpp.

◆ TEST_CASE() [2/6]

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

Definition at line 49 of file test_Filter.cpp.

◆ TEST_CASE() [3/6]

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

Definition at line 77 of file test_Filter.cpp.

◆ TEST_CASE() [4/6]

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

Definition at line 85 of file test_Filter.cpp.

◆ TEST_CASE() [5/6]

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

Definition at line 93 of file test_Filter.cpp.

References filter_a, and filter_b.

◆ TEST_CASE() [6/6]

TEST_CASE ( "Filter's 'will_accept' method determines whether to accept or " "reject a packet/address combination."  ,
""  [Filter] 
)

Definition at line 113 of file test_Filter.cpp.

References ping.

Variable Documentation

◆ filter_a

filter_a = std::move(filter_b)

Definition at line 108 of file test_Filter.cpp.

◆ filter_b

auto filter_b = Filter(Chain("test_chain_b"))

Definition at line 106 of file test_Filter.cpp.