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

Public Member Functions

template<class IntType >
void testInteger (IntType in)
 
template<class IntType >
void testIntegers (xor_shift_engine &r)
 
void testPathologies ()
 
template<class T >
void tryBadConvert (std::string const &s)
 
void testConversionOverflows ()
 
void testConversionUnderflows ()
 
template<class T >
bool tryEdgeCase (std::string const &s)
 
void testEdgeCases ()
 
template<class T >
void testThrowConvert (std::string const &s, bool success)
 
void testThrowingConversions ()
 
void testZero ()
 
void testEntireRange ()
 
void run () override
 

Static Public Member Functions

template<class IntType >
static IntType nextRandomInt (xor_shift_engine &r)
 

Detailed Description

Definition at line 26 of file LexicalCast_test.cpp.

Member Function Documentation

◆ nextRandomInt()

template<class IntType >
static IntType beast::LexicalCast_test::nextRandomInt ( xor_shift_engine r)
static

Definition at line 31 of file LexicalCast_test.cpp.

◆ testInteger()

template<class IntType >
void beast::LexicalCast_test::testInteger ( IntType  in)

Definition at line 38 of file LexicalCast_test.cpp.

◆ testIntegers()

template<class IntType >
void beast::LexicalCast_test::testIntegers ( xor_shift_engine r)

Definition at line 50 of file LexicalCast_test.cpp.

◆ testPathologies()

void beast::LexicalCast_test::testPathologies ( )

Definition at line 75 of file LexicalCast_test.cpp.

◆ tryBadConvert()

template<class T >
void beast::LexicalCast_test::tryBadConvert ( std::string const &  s)

Definition at line 90 of file LexicalCast_test.cpp.

◆ testConversionOverflows()

void beast::LexicalCast_test::testConversionOverflows ( )

Definition at line 97 of file LexicalCast_test.cpp.

◆ testConversionUnderflows()

void beast::LexicalCast_test::testConversionUnderflows ( )

Definition at line 107 of file LexicalCast_test.cpp.

◆ tryEdgeCase()

template<class T >
bool beast::LexicalCast_test::tryEdgeCase ( std::string const &  s)

Definition at line 120 of file LexicalCast_test.cpp.

◆ testEdgeCases()

void beast::LexicalCast_test::testEdgeCases ( )

Definition at line 133 of file LexicalCast_test.cpp.

◆ testThrowConvert()

template<class T >
void beast::LexicalCast_test::testThrowConvert ( std::string const &  s,
bool  success 
)

Definition at line 176 of file LexicalCast_test.cpp.

◆ testThrowingConversions()

void beast::LexicalCast_test::testThrowingConversions ( )

Definition at line 195 of file LexicalCast_test.cpp.

◆ testZero()

void beast::LexicalCast_test::testZero ( )

Definition at line 215 of file LexicalCast_test.cpp.

◆ testEntireRange()

void beast::LexicalCast_test::testEntireRange ( )

Definition at line 237 of file LexicalCast_test.cpp.

◆ run()

void beast::LexicalCast_test::run ( )
override

Definition at line 267 of file LexicalCast_test.cpp.