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 |
Encapsulates a function registered for testing.
|
noexcept |
Constructor.
name | The function's name. |
function | The actual function encapsulated. |
nkDebug::TestFunction::~TestFunction | ( | ) |
Destructor.
std::function<void ()> nkDebug::TestFunction::getFunction | ( | ) | const |
nkMemory::StringView nkDebug::TestFunction::getName | ( | ) | const |