Loading...
Searching...
No Matches
riot::testing::test Class Referenceabstract

Test base class. More...

Detailed Description

Test base class.

Should not be instantiated directly.

See also
TEST(suite, name) macro

Definition at line 42 of file cppunit_base.hpp.

#include <cppunit_base.hpp>

Public Member Functions

virtual bool run ()=0
 Run the test.
 
void fail ()
 Indicate failure during test run.
 
bool success () const
 Check whether the test completed successfully.
 

Member Function Documentation

◆ fail()

void riot::testing::test::fail ( )
inline

Indicate failure during test run.

Should be called by assertions macros

See also
EXPECT_EQ(expected, actual, msg)
EXPECT_STREQ(expected, actual, msg)
EXPECT_FFF_CALL_COUNT(name, count)
EXPECT_FFF_CALL_PARAMS(mock, ...)

Definition at line 61 of file cppunit_base.hpp.

◆ run()

virtual bool riot::testing::test::run ( )
pure virtual

Run the test.

Should not be called directly, only via macros

See also
RUN_SUITE(name)
Returns
whether the test completed without errors

◆ success()

bool riot::testing::test::success ( ) const
inline

Check whether the test completed successfully.

Returns
whether the test completed without errors

Definition at line 68 of file cppunit_base.hpp.


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