mavtables  0.2.1
MAVLink router and firewall.
Functions | Variables
test_Reject.cpp File Reference
#include <catch.hpp>
#include "Action.hpp"
#include "If.hpp"
#include "MAVAddress.hpp"
#include "Packet.hpp"
#include "PacketVersion1.hpp"
#include "PacketVersion2.hpp"
#include "Reject.hpp"
#include "Rule.hpp"
#include "utility.hpp"
#include "common_Packet.hpp"
Include dependency graph for test_Reject.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("Reject's are constructable.", "[Reject]")
 
 TEST_CASE ("Reject's are comparable.", "[Reject]")
 
 TEST_CASE ("Reject's 'action' method determines what to do with a " "packet/address combination.", "[Reject]")
 
Reject reject (If().type("PING").from("192.168/8").to("172.16/4"))
 
 TEST_CASE ("Reject's 'clone' method returns a polymorphic copy.", "[Reject]")
 

Variables

Reject reject
 
Rulerule = reject
 

Function Documentation

◆ reject()

Reject reject ( If().type("PING").from("192.168/8").to("172.16/4")  )

◆ TEST_CASE() [1/4]

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

Definition at line 33 of file test_Reject.cpp.

◆ TEST_CASE() [2/4]

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

Definition at line 49 of file test_Reject.cpp.

◆ TEST_CASE() [3/4]

TEST_CASE ( "Reject's 'action' method determines what to do with a " "packet/address combination."  ,
""  [Reject] 
)

Definition at line 71 of file test_Reject.cpp.

References ping.

◆ TEST_CASE() [4/4]

TEST_CASE ( "Reject's 'clone' method returns a polymorphic copy."  ,
""  [Reject] 
)

Definition at line 134 of file test_Reject.cpp.

References Rule::clone(), reject, and rule.

Here is the call graph for this function:

Variable Documentation

◆ reject

Reject reject(If().type("PING").from("192.168/8").to("172.16/4"))
Initial value:
{
auto ping = packet_v2::Packet(to_vector(PingV2()))
auto ping
Definition: test_Call.cpp:229

Definition at line 103 of file test_Reject.cpp.

◆ rule

Rule& rule = reject

Definition at line 106 of file test_Reject.cpp.