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

Go to the source code of this file.

Functions

 TEST_CASE ("IPAddress's store an address and a port number.", "[IPAddress]")
 
 TEST_CASE ("IPAddress's are comparable.", "[IPAddress]")
 
 TEST_CASE ("IPAddress's can be constructed from an address and port.", "[IPAddress]")
 
 TEST_CASE ("IPAddress's can be constructed from strings.", "[IPAddress]")
 
 TEST_CASE ("IPAddress's are copyable.", "[IPAddress]")
 
 TEST_CASE ("The port of an IP address can be changed during a copy.", "[IPAddress]")
 
 TEST_CASE ("IPAddress's are movable.", "[IPAddress]")
 
 TEST_CASE ("IPAddress's are assignable.", "[IPAddress]")
 
 TEST_CASE ("IPAddress's are printable", "[IPAddress]")
 
 TEST_CASE ("dnslookup finds IPAddress's by domain name.", "[IPAddress]")
 

Variables

IPAddress address_b (0xFFFFFFFF, 65535)
 
 address_a = std::move(address_b)
 

Function Documentation

◆ TEST_CASE() [1/10]

TEST_CASE ( "IPAddress's store an address and a port number."  ,
""  [IPAddress] 
)

Definition at line 27 of file test_IPAddress.cpp.

◆ TEST_CASE() [2/10]

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

Definition at line 38 of file test_IPAddress.cpp.

◆ TEST_CASE() [3/10]

TEST_CASE ( "IPAddress's can be constructed from an address and port."  ,
""  [IPAddress] 
)

Definition at line 148 of file test_IPAddress.cpp.

◆ TEST_CASE() [4/10]

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

Definition at line 168 of file test_IPAddress.cpp.

◆ TEST_CASE() [5/10]

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

Definition at line 286 of file test_IPAddress.cpp.

References address_a, and address_b.

◆ TEST_CASE() [6/10]

TEST_CASE ( "The port of an IP address can be changed during a copy."  ,
""  [IPAddress] 
)

Definition at line 299 of file test_IPAddress.cpp.

References address_a, and address_b.

◆ TEST_CASE() [7/10]

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

Definition at line 328 of file test_IPAddress.cpp.

References address_a, and address_b.

◆ TEST_CASE() [8/10]

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

Definition at line 339 of file test_IPAddress.cpp.

References address_a, and address_b.

◆ TEST_CASE() [9/10]

TEST_CASE ( "IPAddress's are printable"  ,
""  [IPAddress] 
)

Definition at line 359 of file test_IPAddress.cpp.

◆ TEST_CASE() [10/10]

TEST_CASE ( "dnslookup finds IPAddress's by domain name."  ,
""  [IPAddress] 
)

Definition at line 372 of file test_IPAddress.cpp.

Variable Documentation

◆ address_a

address_a = std::move(address_b)

Definition at line 354 of file test_IPAddress.cpp.

◆ address_b

IPAddress address_b(0xFFFFFFFF, 65535)
Initial value:
{
IPAddress address_a(0x00000000, 0)
address_a