• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonbathyscaphephpgamewindowsguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

New lambda-based xUnit-style unit-testing framework for C++.


Commit MetaInfo

Revisão75685f757b9e4f2cb06e01b2cff31442a269d0e4 (tree)
Hora2020-01-23 12:35:21
AutorKaz Nishimura <kazssym@linu...>
CommiterKaz Nishimura

Mensagem de Log

Add new member functions to 'TestDriver'

Mudança Sumário

Diff

diff -r 64536b7fec26 -r 75685f757b9e libcppunitx/bits/cppunitx/driver.h
--- a/libcppunitx/bits/cppunitx/driver.h Wed Jan 22 16:42:43 2020 +0900
+++ b/libcppunitx/bits/cppunitx/driver.h Thu Jan 23 12:35:21 2020 +0900
@@ -20,6 +20,7 @@
2020 #define _CPPUNITX_DRIVER_H 1
2121
2222 #include <bits/cppunitx.h>
23+#include <cppunitx/framework>
2324 #include <memory>
2425
2526 namespace cppunitx
@@ -43,6 +44,20 @@
4344
4445 public:
4546 virtual void run(const char *suiteName);
47+
48+ // The terms install/uninstall might not fit well for these functions.
49+
50+ virtual void installTest(const Test *test);
51+
52+ virtual void uninstallTest(const Test *test);
53+
54+ virtual void installBefore(const Before *before);
55+
56+ virtual void uninstallBefore(const Before *before);
57+
58+ virtual void installAfter(const After *after);
59+
60+ virtual void uninstallAfter(const After *after);
4661 };
4762 }
4863
diff -r 64536b7fec26 -r 75685f757b9e libcppunitx/driver.cpp
--- a/libcppunitx/driver.cpp Wed Jan 22 16:42:43 2020 +0900
+++ b/libcppunitx/driver.cpp Thu Jan 23 12:35:21 2020 +0900
@@ -87,3 +87,27 @@
8787 auto registry = (*getRegistry)();
8888 registry->runTests();
8989 }
90+
91+void TestDriver::installTest(const Test *const)
92+{
93+}
94+
95+void TestDriver::uninstallTest(const Test *const)
96+{
97+}
98+
99+void TestDriver::installBefore(const Before *const)
100+{
101+}
102+
103+void TestDriver::uninstallBefore(const Before *const)
104+{
105+}
106+
107+void TestDriver::installAfter(const After *const)
108+{
109+}
110+
111+void TestDriver::uninstallAfter(const After *const)
112+{
113+}