CppUnitLite
TestRegistry.h
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
3
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
4
* Atlanta, Georgia 30332-0415
5
* All Rights Reserved
6
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8
* See LICENSE for the license information
9
10
* -------------------------------------------------------------------------- */
11
13
//
14
// TESTREGISTRY.H
15
//
16
// TestRegistry is a singleton collection of all the tests to run in a system.
17
//
19
20
#ifndef TESTREGISTRY_H
21
#define TESTREGISTRY_H
22
23
24
class
Test
;
25
class
TestResult
;
26
27
28
29
class
TestRegistry
30
{
31
public
:
32
static
void
addTest
(
Test
*
test
);
33
static
int
runAllTests
(
TestResult
&
result
);
34
35
private
:
36
37
static
TestRegistry
&
instance
();
38
void
add
(
Test
*
test
);
39
int
run
(
TestResult
&
result
);
40
41
42
Test
*
tests
;
43
Test
*
lastTest
;
44
45
};
46
47
48
49
50
#endif
TestRegistry::runAllTests
static int runAllTests(TestResult &result)
Definition:
TestRegistry.cpp:27
TestRegistry::addTest
static void addTest(Test *test)
Definition:
TestRegistry.cpp:21
TestRegistry::run
int run(TestResult &result)
Definition:
TestRegistry.cpp:55
result
Values result
Definition:
OdometryOptimize.cpp:8
test
Definition:
test.py:1
TestRegistry::lastTest
Test * lastTest
Definition:
TestRegistry.h:43
TestRegistry::instance
static TestRegistry & instance()
Definition:
TestRegistry.cpp:33
TestRegistry
Definition:
TestRegistry.h:29
TestRegistry::add
void add(Test *test)
Definition:
TestRegistry.cpp:40
TestResult
Definition:
TestResult.h:26
TestRegistry::tests
Test * tests
Definition:
TestRegistry.h:42
Test
Definition:
Test.h:30
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:17:09