gtsam/CppUnitLite/TestRegistry.h

51 lines
1.0 KiB
C
Raw Normal View History

/* ----------------------------------------------------------------------------
2019-02-11 22:39:48 +08:00
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------------------------------------------------------------------------- */
2009-08-22 06:23:24 +08:00
///////////////////////////////////////////////////////////////////////////////
//
// TESTREGISTRY.H
2019-02-11 22:39:48 +08:00
//
// TestRegistry is a singleton collection of all the tests to run in a system.
//
2009-08-22 06:23:24 +08:00
///////////////////////////////////////////////////////////////////////////////
#ifndef TESTREGISTRY_H
#define TESTREGISTRY_H
class Test;
class TestResult;
class TestRegistry
{
public:
static void addTest (Test *test);
static int runAllTests (TestResult& result);
2009-08-22 06:23:24 +08:00
private:
static TestRegistry& instance ();
void add (Test *test);
int run (TestResult& result);
2009-08-22 06:23:24 +08:00
2019-02-11 22:39:48 +08:00
Test *tests;
Test *lastTest;
2009-08-22 06:23:24 +08:00
};
#endif