rili::test::BasicFormater Class Referencefinal
Inheritance diagram for rili::test::BasicFormater:
[legend]
Collaboration diagram for rili::test::BasicFormater:
[legend]

Public Member Functions

 BasicFormater (std::ostream &stream)
 
void testSkipped (std::string const &fixture, std::string const &scenario) noexceptoverride
 
void testDisabled (std::string const &fixture, std::string const &scenario) noexceptoverride
 
void afterFailed (const std::string &reason) noexceptoverride
 
void beforeFailed (const std::string &reason) noexceptoverride
 
void createFailed (const std::string &reason) noexceptoverride
 
void endTest () noexceptoverride
 
void endTests () noexceptoverride
 
void runFailed (const std::string &reason) noexceptoverride
 
void startTest (std::string const &fixture, std::string const &scenario, std::string const &type) noexceptoverride
 
void startTests () noexceptoverride
 
void expectFailed (std::string const &file, std::string const &line, const std::string &content) noexceptoverride
 
void unexpectedCall (std::string const &file, std::string const &line, void const *objectId, const std::string &signature, const std::string &arguments) noexceptoverride
 
- Public Member Functions inherited from rili::test::Formater
 Formater (std::ostream &logStream)
 

Additional Inherited Members

- Protected Member Functions inherited from rili::test::Formater
std::ostream & stream () noexcept
 

Constructor & Destructor Documentation

rili::test::BasicFormater::BasicFormater ( std::ostream &  stream)
explicit

Constructs BasicFromater, gven in parameter stream will be used to flush tests results.

Parameters
stream

Member Function Documentation

void rili::test::BasicFormater::afterFailed ( const std::string &  reason)
overridevirtualnoexcept

is called when detected exception during rili::test::TestBaseFixture::after()

Parameters
reason- reason of failure

Implements rili::test::Formater.

void rili::test::BasicFormater::beforeFailed ( const std::string &  reason)
overridevirtualnoexcept

is called when detected excaption during rili::test::TestBaseFixture::before()

Parameters
reason- reason of failure

Implements rili::test::Formater.

void rili::test::BasicFormater::createFailed ( const std::string &  reason)
overridevirtualnoexcept

is called when detected exception during rili::test::TestBaseFixture construction

Parameters
reason- reason of failure

Implements rili::test::Formater.

void rili::test::BasicFormater::endTest ( )
overridevirtualnoexcept

is called when single test ended

Implements rili::test::Formater.

void rili::test::BasicFormater::endTests ( )
overridevirtualnoexcept

is called when all tests ended, so no more tests will be run

Implements rili::test::Formater.

void rili::test::BasicFormater::expectFailed ( std::string const &  file,
std::string const &  line,
const std::string &  content 
)
overridevirtualnoexcept

is called on any expectation failure

Parameters
filecontain expectation file
linecontain expectation line
contentcontain expectation reason or description

Implements rili::test::Formater.

void rili::test::BasicFormater::runFailed ( const std::string &  reason)
overridevirtualnoexcept

is called when detected excption during rili::test::TestBaseFixture::run()

Parameters
reason- reason of failure

Implements rili::test::Formater.

void rili::test::BasicFormater::startTest ( std::string const &  fixture,
std::string const &  scenario,
std::string const &  type 
)
overridevirtualnoexcept

is called when single test exacution is started

Parameters
fixture- test fixture name
scenario- test scenario name
type- test scenario type name

Implements rili::test::Formater.

void rili::test::BasicFormater::startTests ( )
overridevirtualnoexcept

startTests called as first event, when staring tests execution

Implements rili::test::Formater.

void rili::test::BasicFormater::testDisabled ( std::string const &  fixture,
std::string const &  scenario 
)
overridevirtualnoexcept

is called when detected that test is disabled

Parameters
fixturetest fixture name
scenariotest scenario name

Implements rili::test::Formater.

void rili::test::BasicFormater::testSkipped ( std::string const &  fixture,
std::string const &  scenario 
)
overridevirtualnoexcept

is called when detected that test is skipped

Parameters
fixturetest fixture name
scenariotest scenario name

Implements rili::test::Formater.

void rili::test::BasicFormater::unexpectedCall ( std::string const &  file,
std::string const &  line,
void const *  objectId,
const std::string &  signature,
const std::string &  arguments 
)
overridevirtualnoexcept

is used when is detected unexpected call on mocked object

Parameters
filecontain file path where mock was created
linecontain line number where mock was created
objectIdpointer to object (it this)
signaturestringified signature of mocked function
argumentsarguments with which mocked method was called (if argument is converitable to string)

Implements rili::test::Formater.


The documentation for this class was generated from the following file: