API Documentation
TestFunction.h
1 // TestFunction.h
3 //
5 
6 namespace nkDebug
7 {
11  class TestFunction final
12  {
13  public :
14 
15  // Constructor, destructor
22  TestFunction (nkMemory::StringView name, std::function<void ()> function) noexcept ;
27 
28  // Getters
32  std::function<void ()> getFunction () const ;
36  nkMemory::StringView getName () const ;
37  } ;
38 }
nkDebug::TestFunction::getName
nkMemory::StringView getName() const
nkDebug::TestFunction::TestFunction
TestFunction(nkMemory::StringView name, std::function< void()> function) noexcept
nkDebug::TestFunction::getFunction
std::function< void()> getFunction() const
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkDebug::TestFunction
Encapsulates a function registered for testing.
Definition: TestFunction.h:12
nkDebug
Encompasses all API of component NilkinsDebug.
Definition: LogManager.h:7
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7