![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <compat/compat.h>#include <net_permissions.h>#include <netaddress.h>#include <netbase.h>#include <netgroup.h>#include <protocol.h>#include <serialize.h>#include <streams.h>#include <test/util/common.h>#include <test/util/setup_common.h>#include <util/strencodings.h>#include <util/translation.h>#include <string>#include <numeric>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Functions | |
| static CNetAddr | ResolveIP (const std::string &ip) |
| static CNetAddr | CreateInternal (const std::string &host) |
| BOOST_AUTO_TEST_CASE (netbase_networks) | |
| BOOST_AUTO_TEST_CASE (netbase_properties) | |
| static bool | TestSplitHost (const std::string &test, const std::string &host, uint16_t port, bool validPort=true) |
| BOOST_AUTO_TEST_CASE (netbase_splithost) | |
| static bool | TestParse (std::string src, std::string canon) |
| BOOST_AUTO_TEST_CASE (netbase_lookupnumeric) | |
| BOOST_AUTO_TEST_CASE (embedded_test) | |
| BOOST_AUTO_TEST_CASE (subnet_test) | |
| BOOST_AUTO_TEST_CASE (netbase_getgroup) | |
| BOOST_AUTO_TEST_CASE (netbase_parsenetwork) | |
| BOOST_AUTO_TEST_CASE (netpermissions_test) | |
| BOOST_AUTO_TEST_CASE (netbase_dont_resolve_strings_with_embedded_nul_characters) | |
| static const std::vector< CAddress > | fixture_addresses ({ CAddress{ CService(CNetAddr(in6_addr(COMPAT_IN6ADDR_LOOPBACK_INIT)), 0), NODE_NONE, NodeSeconds{0x4966bc61s}, }, CAddress{ CService(CNetAddr(in6_addr(COMPAT_IN6ADDR_LOOPBACK_INIT)), 0x00f1), NODE_NETWORK, NodeSeconds{0x83766279s}, }, CAddress{ CService(CNetAddr(in6_addr(COMPAT_IN6ADDR_LOOPBACK_INIT)), 0xf1f2), static_cast< ServiceFlags >(NODE_WITNESS|NODE_COMPACT_FILTERS|NODE_NETWORK_LIMITED), NodeSeconds{0xffffffffs}, }, }) |
| BOOST_AUTO_TEST_CASE (caddress_serialize_v1) | |
| BOOST_AUTO_TEST_CASE (caddress_unserialize_v1) | |
| BOOST_AUTO_TEST_CASE (caddress_serialize_v2) | |
| BOOST_AUTO_TEST_CASE (caddress_unserialize_v2) | |
| BOOST_AUTO_TEST_CASE (isbadport) | |
| BOOST_AUTO_TEST_CASE (asmap_test_vectors) | |
Variables | |
| static constexpr const char * | stream_addrv1_hex |
| static constexpr const char * | stream_addrv2_hex |
| BOOST_AUTO_TEST_CASE | ( | asmap_test_vectors | ) |
| BOOST_AUTO_TEST_CASE | ( | caddress_serialize_v1 | ) |
| BOOST_AUTO_TEST_CASE | ( | caddress_serialize_v2 | ) |
| BOOST_AUTO_TEST_CASE | ( | caddress_unserialize_v1 | ) |
| BOOST_AUTO_TEST_CASE | ( | caddress_unserialize_v2 | ) |
| BOOST_AUTO_TEST_CASE | ( | embedded_test | ) |
| BOOST_AUTO_TEST_CASE | ( | isbadport | ) |
| BOOST_AUTO_TEST_CASE | ( | netbase_dont_resolve_strings_with_embedded_nul_characters | ) |
| BOOST_AUTO_TEST_CASE | ( | netbase_getgroup | ) |
| BOOST_AUTO_TEST_CASE | ( | netbase_lookupnumeric | ) |
| BOOST_AUTO_TEST_CASE | ( | netbase_networks | ) |
| BOOST_AUTO_TEST_CASE | ( | netbase_parsenetwork | ) |
| BOOST_AUTO_TEST_CASE | ( | netbase_properties | ) |
| BOOST_AUTO_TEST_CASE | ( | netbase_splithost | ) |
| BOOST_AUTO_TEST_CASE | ( | netpermissions_test | ) |
| BOOST_AUTO_TEST_CASE | ( | subnet_test | ) |
|
static |
Definition at line 33 of file netbase_tests.cpp.
|
static |
|
static |
Definition at line 28 of file netbase_tests.cpp.
|
static |
Definition at line 125 of file netbase_tests.cpp.
|
static |
Definition at line 81 of file netbase_tests.cpp.
|
staticconstexpr |
Definition at line 525 of file netbase_tests.cpp.
|
staticconstexpr |
Definition at line 545 of file netbase_tests.cpp.