API Documentation
Public Member Functions | List of all members
nkDebug::TestFunction Class Referencefinal

Encapsulates a function registered for testing. More...

Public Member Functions

 TestFunction (nkMemory::StringView name, std::function< void()> function) noexcept
 
 ~TestFunction ()
 
std::function< void()> getFunction () const
 
nkMemory::StringView getName () const
 

Detailed Description

Encapsulates a function registered for testing.

Constructor & Destructor Documentation

◆ TestFunction()

nkDebug::TestFunction::TestFunction ( nkMemory::StringView  name,
std::function< void()>  function 
)
noexcept

Constructor.

Parameters
nameThe function's name.
functionThe actual function encapsulated.

◆ ~TestFunction()

nkDebug::TestFunction::~TestFunction ( )

Destructor.

Member Function Documentation

◆ getFunction()

std::function<void ()> nkDebug::TestFunction::getFunction ( ) const
Returns
The function encapsulated.

◆ getName()

nkMemory::StringView nkDebug::TestFunction::getName ( ) const
Returns
The function's attached name.

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