A lambda-based C++ unit-testing framework.
Revision | 98013252b75b8b6c2aa54ba96b54c2bad2afbcdc (tree) |
---|---|
Zeit | 2020-01-23 19:57:57 |
Autor | Kaz Nishimura <kazssym@linu...> |
Commiter | Kaz Nishimura |
Add comments
@@ -16,6 +16,9 @@ | ||
16 | 16 | // |
17 | 17 | // SPDX-License-Identifier: GPL-3.0-or-later |
18 | 18 | |
19 | +// This header defines classes to specify test cases, before- and after-test | |
20 | +// procedures in a test fixture. | |
21 | + | |
19 | 22 | #ifndef _CPPUNITX_TEST_H |
20 | 23 | #define _CPPUNITX_TEST_H 1 |
21 | 24 |
@@ -26,6 +29,8 @@ | ||
26 | 29 | namespace cppunitx |
27 | 30 | { |
28 | 31 | /// Object to specify a test case. |
32 | + /// | |
33 | + /// This class is equivalent to the '@Test' annotation of JUnit. | |
29 | 34 | class _CPPUNITX_PUBLIC Test |
30 | 35 | { |
31 | 36 | private: |
@@ -50,6 +55,8 @@ | ||
50 | 55 | }; |
51 | 56 | |
52 | 57 | /// Object to specify a before-test procedure. |
58 | + /// | |
59 | + /// This class is equivalent to the '@Before' annotation of JUnit. | |
53 | 60 | class _CPPUNITX_PUBLIC Before |
54 | 61 | { |
55 | 62 | private: |
@@ -67,6 +74,8 @@ | ||
67 | 74 | }; |
68 | 75 | |
69 | 76 | /// Object to specify an after-test procedure. |
77 | + /// | |
78 | + /// This class is equivalent to the '@After' annotation of JUnit. | |
70 | 79 | class _CPPUNITX_PUBLIC After |
71 | 80 | { |
72 | 81 | private: |