Browse Source

Test: Capitalize function type

master
Riyyi 3 years ago
parent
commit
93b5ac609e
  1. 8
      test/testcase.h

8
test/testcase.h

@ -22,22 +22,22 @@
namespace Test { namespace Test {
using testFunction = std::function<void()>; using TestFunction = std::function<void()>;
class TestCase { class TestCase {
public: public:
TestCase(const char* name, testFunction&& function) TestCase(const char* name, TestFunction&& function)
: m_name(name) : m_name(name)
, m_function(function) , m_function(function)
{ {
} }
const char* name() const { return m_name; } const char* name() const { return m_name; }
const testFunction& function() const { return m_function; } const TestFunction& function() const { return m_function; }
private: private:
const char* m_name { nullptr }; const char* m_name { nullptr };
testFunction m_function; TestFunction m_function;
}; };
} // namespace Test } // namespace Test

Loading…
Cancel
Save