rippled
Public Member Functions | List of all members
beast::IP::IPEndpoint_test Class Reference
Inheritance diagram for beast::IP::IPEndpoint_test:
Inheritance graph
[legend]
Collaboration diagram for beast::IP::IPEndpoint_test:
Collaboration graph
[legend]

Public Member Functions

void shouldParseAddrV4 (std::string const &s, std::uint32_t value, std::string const &normal="")
 
void failParseAddr (std::string const &s)
 
void testAddressV4 ()
 
void testAddressV4Proxy ()
 
void testAddress ()
 
void shouldParseEPV4 (std::string const &s, AddressV4::bytes_type const &value, std::uint16_t p, std::string const &normal="")
 
void shouldParseEPV6 (std::string const &s, AddressV6::bytes_type const &value, std::uint16_t p, std::string const &normal="")
 
void failParseEP (std::string s)
 
void testEndpoint ()
 
template<typename T >
bool parse (std::string const &text, T &t)
 
template<typename T >
void shouldPass (std::string const &text, std::string const &normal="")
 
template<typename T >
void shouldFail (std::string const &text)
 
template<typename T >
void testParse (char const *name)
 
void run () override
 

Detailed Description

Definition at line 37 of file IPEndpoint_test.cpp.

Member Function Documentation

◆ shouldParseAddrV4()

void beast::IP::IPEndpoint_test::shouldParseAddrV4 ( std::string const &  s,
std::uint32_t  value,
std::string const &  normal = "" 
)

Definition at line 41 of file IPEndpoint_test.cpp.

◆ failParseAddr()

void beast::IP::IPEndpoint_test::failParseAddr ( std::string const &  s)

Definition at line 61 of file IPEndpoint_test.cpp.

◆ testAddressV4()

void beast::IP::IPEndpoint_test::testAddressV4 ( )

Definition at line 69 of file IPEndpoint_test.cpp.

◆ testAddressV4Proxy()

void beast::IP::IPEndpoint_test::testAddressV4Proxy ( )

Definition at line 133 of file IPEndpoint_test.cpp.

◆ testAddress()

void beast::IP::IPEndpoint_test::testAddress ( )

Definition at line 158 of file IPEndpoint_test.cpp.

◆ shouldParseEPV4()

void beast::IP::IPEndpoint_test::shouldParseEPV4 ( std::string const &  s,
AddressV4::bytes_type const &  value,
std::uint16_t  p,
std::string const &  normal = "" 
)

Definition at line 172 of file IPEndpoint_test.cpp.

◆ shouldParseEPV6()

void beast::IP::IPEndpoint_test::shouldParseEPV6 ( std::string const &  s,
AddressV6::bytes_type const &  value,
std::uint16_t  p,
std::string const &  normal = "" 
)

Definition at line 191 of file IPEndpoint_test.cpp.

◆ failParseEP()

void beast::IP::IPEndpoint_test::failParseEP ( std::string  s)

Definition at line 210 of file IPEndpoint_test.cpp.

◆ testEndpoint()

void beast::IP::IPEndpoint_test::testEndpoint ( )

Definition at line 224 of file IPEndpoint_test.cpp.

◆ parse()

template<typename T >
bool beast::IP::IPEndpoint_test::parse ( std::string const &  text,
T &  t 
)

Definition at line 405 of file IPEndpoint_test.cpp.

◆ shouldPass()

template<typename T >
void beast::IP::IPEndpoint_test::shouldPass ( std::string const &  text,
std::string const &  normal = "" 
)

Definition at line 414 of file IPEndpoint_test.cpp.

◆ shouldFail()

template<typename T >
void beast::IP::IPEndpoint_test::shouldFail ( std::string const &  text)

Definition at line 426 of file IPEndpoint_test.cpp.

◆ testParse()

template<typename T >
void beast::IP::IPEndpoint_test::testParse ( char const *  name)

Definition at line 434 of file IPEndpoint_test.cpp.

◆ run()

void beast::IP::IPEndpoint_test::run ( )
override

Definition at line 470 of file IPEndpoint_test.cpp.