PIVX Core  5.6.99
P2P Digital Currency
Classes | Functions
net_tests.cpp File Reference
#include "addrman.h"
#include "chainparams.h"
#include "hash.h"
#include "net.h"
#include "netbase.h"
#include "serialize.h"
#include "span.h"
#include "streams.h"
#include "version.h"
#include <cstdint>
#include "test/test_pivx.h"
#include <ios>
#include <string>
#include <boost/test/unit_test.hpp>
Include dependency graph for net_tests.cpp:

Go to the source code of this file.

Classes

class  CAddrManSerializationMock
 
class  CAddrManUncorrupted
 
class  CAddrManCorrupted
 

Functions

CDataStream AddrmanToStream (CAddrManSerializationMock &addrman)
 
 BOOST_AUTO_TEST_CASE (cnode_listen_port)
 
 BOOST_AUTO_TEST_CASE (caddrdb_read)
 
 BOOST_AUTO_TEST_CASE (caddrdb_read_corrupted)
 
 BOOST_AUTO_TEST_CASE (cnode_simple_test)
 
 BOOST_AUTO_TEST_CASE (cnetaddr_basic)
 
 BOOST_AUTO_TEST_CASE (cnetaddr_serialize_v1)
 
 BOOST_AUTO_TEST_CASE (cnetaddr_serialize_v2)
 
 BOOST_AUTO_TEST_CASE (cnetaddr_unserialize_v2)
 
 BOOST_AUTO_TEST_CASE (ipv4_peer_with_ipv6_addrMe_test)
 
 BOOST_AUTO_TEST_CASE (LimitedAndReachable_Network)
 
 BOOST_AUTO_TEST_CASE (LimitedAndReachable_NetworkCaseUnroutableAndInternal)
 
CNetAddr UtilBuildAddress (unsigned char p1, unsigned char p2, unsigned char p3, unsigned char p4)
 
 BOOST_AUTO_TEST_CASE (LimitedAndReachable_CNetAddr)
 
 BOOST_AUTO_TEST_CASE (LocalAddress_BasicLifecycle)
 
 BOOST_AUTO_TEST_CASE (PoissonNextSend)
 

Function Documentation

◆ AddrmanToStream()

CDataStream AddrmanToStream ( CAddrManSerializationMock addrman)

Definition at line 72 of file net_tests.cpp.

Here is the caller graph for this function:

◆ BOOST_AUTO_TEST_CASE() [1/14]

BOOST_AUTO_TEST_CASE ( caddrdb_read  )

Definition at line 96 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/14]

BOOST_AUTO_TEST_CASE ( caddrdb_read_corrupted  )

Definition at line 142 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/14]

BOOST_AUTO_TEST_CASE ( cnetaddr_basic  )

Definition at line 196 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/14]

BOOST_AUTO_TEST_CASE ( cnetaddr_serialize_v1  )

Definition at line 293 of file net_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/14]

BOOST_AUTO_TEST_CASE ( cnetaddr_serialize_v2  )

Definition at line 328 of file net_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/14]

BOOST_AUTO_TEST_CASE ( cnetaddr_unserialize_v2  )

Definition at line 366 of file net_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/14]

BOOST_AUTO_TEST_CASE ( cnode_listen_port  )

Definition at line 84 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/14]

BOOST_AUTO_TEST_CASE ( cnode_simple_test  )

Definition at line 172 of file net_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/14]

BOOST_AUTO_TEST_CASE ( ipv4_peer_with_ipv6_addrMe_test  )

Definition at line 578 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/14]

BOOST_AUTO_TEST_CASE ( LimitedAndReachable_CNetAddr  )

Definition at line 662 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/14]

BOOST_AUTO_TEST_CASE ( LimitedAndReachable_Network  )

Definition at line 616 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/14]

BOOST_AUTO_TEST_CASE ( LimitedAndReachable_NetworkCaseUnroutableAndInternal  )

Definition at line 639 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/14]

BOOST_AUTO_TEST_CASE ( LocalAddress_BasicLifecycle  )

Definition at line 676 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/14]

BOOST_AUTO_TEST_CASE ( PoissonNextSend  )

Definition at line 690 of file net_tests.cpp.

Here is the call graph for this function:

◆ UtilBuildAddress()

CNetAddr UtilBuildAddress ( unsigned char  p1,
unsigned char  p2,
unsigned char  p3,
unsigned char  p4 
)

Definition at line 651 of file net_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: