NRE_TestSuite.cpp File Reference

Implementation of Tester's API's Object : TestSuite. More...

Namespaces

 NRE
 The NearlyRealEngine's global namespace.
 

Functions

void NRE::Tester::fail (std::string const &message)
 
void NRE::Tester::fail (const InternalTest *test, std::string const &message)
 
void NRE::Tester::assertTrue (bool assert, std::string const &message)
 
void NRE::Tester::assertTrue (const InternalTest *test, bool assert, std::string const &message)
 
void NRE::Tester::assertFalse (bool assert, std::string const &message)
 
void NRE::Tester::assertFalse (const InternalTest *test, bool assert, std::string const &message)
 
void NRE::Tester::assertNull (const void *ptr, std::string const &message)
 
void NRE::Tester::assertNull (const InternalTest *test, const void *ptr, std::string const &message)
 
void NRE::Tester::assertNotNull (const void *ptr, std::string const &message)
 
void NRE::Tester::assertNotNull (const InternalTest *test, const void *ptr, std::string const &message)
 

Detailed Description

Implementation of Tester's API's Object : TestSuite.

Author
Louis ABEL
Date
18/06/2019

Function Documentation

void NRE::Tester::assertFalse ( bool  assert,
std::string const &  message = "False Assertion Failed" 
)

Except a false as input

Parameters
assertthe assert to test
messagethe message if the assertion fail
void NRE::Tester::assertFalse ( const InternalTest test,
bool  assert,
std::string const &  message = "False Assertion Failed" 
)

Except a false as input

Parameters
testthe test for detailed information
assertthe assert to test
messagethe message if the assertion fail
void NRE::Tester::assertNotNull ( const void *  ptr,
std::string const &  message = "NotNull Assertion Failed" 
)

Except the input to not be a nullptr

Parameters
ptrthe pointer to test
messagethe message if the assertion fail
void NRE::Tester::assertNotNull ( const InternalTest test,
const void *  ptr,
std::string const &  message = "NotNull Assertion Failed" 
)

Except the input to not be a nullptr

Parameters
testthe test for detailed information
ptrthe pointer to test
messagethe message if the assertion fail
void NRE::Tester::assertNull ( const void *  ptr,
std::string const &  message = "Null Assertion Failed" 
)

Except the input to be a nullptr

Parameters
ptrthe pointer to test
messagethe message if the assertion fail
void NRE::Tester::assertNull ( const InternalTest test,
const void *  ptr,
std::string const &  message = "Null Assertion Failed" 
)

Except the input to be a nullptr

Parameters
testthe test for detailed information
ptrthe pointer to test
messagethe message if the assertion fail
void NRE::Tester::assertTrue ( bool  assert,
std::string const &  message = "True Assertion Failed" 
)

Except a true as input

Parameters
assertthe assert to test
messagethe message if the assertion fail
void NRE::Tester::assertTrue ( const InternalTest test,
bool  assert,
std::string const &  message = "True Assertion Failed" 
)

Except a true as input

Parameters
testthe test for detailed information
assertthe assert to test
messagethe message if the assertion fail
void NRE::Tester::fail ( std::string const &  message = "Fail")

Trigger a fail

Parameters
messagethe fail message
void NRE::Tester::fail ( const InternalTest test,
std::string const &  message = "Fail" 
)

Trigger a fail

Parameters
testthe test for detailed information
messagethe fail message