Bitcoin Core  22.99.0
P2P Digital Currency
Functions
net_tests.cpp File Reference
#include <chainparams.h>
#include <clientversion.h>
#include <cstdint>
#include <net.h>
#include <netaddress.h>
#include <netbase.h>
#include <serialize.h>
#include <span.h>
#include <streams.h>
#include <test/util/setup_common.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <util/system.h>
#include <version.h>
#include <boost/test/unit_test.hpp>
#include <algorithm>
#include <ios>
#include <memory>
#include <optional>
#include <string>
Include dependency graph for net_tests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (cnode_listen_port)
 
 BOOST_AUTO_TEST_CASE (cnode_simple_test)
 
 BOOST_AUTO_TEST_CASE (cnetaddr_basic)
 
 BOOST_AUTO_TEST_CASE (cnetaddr_tostring_canonical_ipv6)
 
 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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/12]

BOOST_AUTO_TEST_CASE ( cnetaddr_basic  )

Definition at line 116 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/12]

BOOST_AUTO_TEST_CASE ( cnetaddr_serialize_v1  )

Definition at line 311 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/12]

BOOST_AUTO_TEST_CASE ( cnetaddr_serialize_v2  )

Definition at line 344 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/12]

BOOST_AUTO_TEST_CASE ( cnetaddr_tostring_canonical_ipv6  )

Definition at line 257 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/12]

BOOST_AUTO_TEST_CASE ( cnetaddr_unserialize_v2  )

Definition at line 380 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/12]

BOOST_AUTO_TEST_CASE ( cnode_listen_port  )

Definition at line 32 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/12]

BOOST_AUTO_TEST_CASE ( cnode_simple_test  )

Definition at line 44 of file net_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/12]

BOOST_AUTO_TEST_CASE ( ipv4_peer_with_ipv6_addrMe_test  )

Definition at line 590 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/12]

BOOST_AUTO_TEST_CASE ( LimitedAndReachable_CNetAddr  )

Definition at line 679 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/12]

BOOST_AUTO_TEST_CASE ( LimitedAndReachable_Network  )

Definition at line 628 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/12]

BOOST_AUTO_TEST_CASE ( LimitedAndReachable_NetworkCaseUnroutableAndInternal  )

Definition at line 656 of file net_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/12]

BOOST_AUTO_TEST_CASE ( LocalAddress_BasicLifecycle  )

Definition at line 693 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 668 of file net_tests.cpp.

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