mavtables  0.2.1
MAVLink router and firewall.
Functions | Variables
test_Packet.cpp File Reference
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include <catch.hpp>
#include <fakeit.hpp>
#include "Connection.hpp"
#include "Filter.hpp"
#include "MAVAddress.hpp"
#include "Packet.hpp"
#include "utility.hpp"
#include "common.hpp"
#include "common_Packet.hpp"
Include dependency graph for test_Packet.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("Packet's can be constructed.", "[Packet]")
 
 TEST_CASE ("Packet's are comparable.", "[Packet]")
 
 TEST_CASE ("Packet's are copyable.", "[Packet]")
 
 TEST_CASE ("Packet's are movable.", "[Packet]")
 
 TEST_CASE ("Packet's are assignable.", "[Packet]")
 
PacketTestClass packet_b ({0, 7, 7, 3, 4})
 
 TEST_CASE ("Packet's contain raw packet data and make it accessible.", "[Packet]")
 
 TEST_CASE ("Packet's have a version.", "[Packet]")
 
 TEST_CASE ("Packet's have an ID.", "[Packet]")
 
 TEST_CASE ("Packet's have a name.", "[Packet]")
 
 TEST_CASE ("Packet's have a source address.", "[Packet]")
 
 TEST_CASE ("Packet's optionally have a destination address.", "[Packet]")
 
 TEST_CASE ("Packet's optionally have a source connection.", "[Packet]")
 
 TEST_CASE ("Packet's are printable.", "[Packet]")
 

Variables

 packet_a = std::move(packet_b)
 

Function Documentation

◆ packet_b()

PacketTestClass packet_b ( {0, 7, 7, 3, 4}  )
Here is the caller graph for this function:

◆ TEST_CASE() [1/13]

TEST_CASE ( "Packet's can be constructed."  ,
""  [Packet] 
)

Definition at line 90 of file test_Packet.cpp.

◆ TEST_CASE() [2/13]

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

Definition at line 99 of file test_Packet.cpp.

◆ TEST_CASE() [3/13]

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

Definition at line 117 of file test_Packet.cpp.

◆ TEST_CASE() [4/13]

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

Definition at line 125 of file test_Packet.cpp.

◆ TEST_CASE() [5/13]

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

Definition at line 133 of file test_Packet.cpp.

References packet_a, and packet_b().

Here is the call graph for this function:

◆ TEST_CASE() [6/13]

TEST_CASE ( "Packet's contain raw packet data and make it accessible."  ,
""  [Packet] 
)

Definition at line 153 of file test_Packet.cpp.

◆ TEST_CASE() [7/13]

TEST_CASE ( "Packet's have a version."  ,
""  [Packet] 
)

Definition at line 165 of file test_Packet.cpp.

◆ TEST_CASE() [8/13]

TEST_CASE ( "Packet's have an ID."  ,
""  [Packet] 
)

Definition at line 171 of file test_Packet.cpp.

◆ TEST_CASE() [9/13]

TEST_CASE ( "Packet's have a name."  ,
""  [Packet] 
)

Definition at line 177 of file test_Packet.cpp.

◆ TEST_CASE() [10/13]

TEST_CASE ( "Packet's have a source address."  ,
""  [Packet] 
)

Definition at line 183 of file test_Packet.cpp.

◆ TEST_CASE() [11/13]

TEST_CASE ( "Packet's optionally have a destination address."  ,
""  [Packet] 
)

Definition at line 189 of file test_Packet.cpp.

◆ TEST_CASE() [12/13]

TEST_CASE ( "Packet's optionally have a source connection."  ,
""  [Packet] 
)

Definition at line 195 of file test_Packet.cpp.

◆ TEST_CASE() [13/13]

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

Definition at line 215 of file test_Packet.cpp.

Variable Documentation

◆ packet_a

packet_a = std::move(packet_b)

Definition at line 148 of file test_Packet.cpp.