gtsam/CppUnitLite/TestResult.h

42 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
///////////////////////////////////////////////////////////////////////////////
//
// TESTRESULT.H
2019-02-11 22:39:48 +08:00
//
2009-08-22 06:23:24 +08:00
// A TestResult is a collection of the history of some test runs. Right now
// it just collects failures.
2019-02-11 22:39:48 +08:00
//
2009-08-22 06:23:24 +08:00
///////////////////////////////////////////////////////////////////////////////
#ifndef TESTRESULT_H
#define TESTRESULT_H
class Failure;
class TestResult
{
public:
2019-02-11 22:39:48 +08:00
TestResult ();
virtual ~TestResult() {}
virtual void testsStarted ();
virtual void addFailure (const Failure& failure);
virtual void testsEnded ();
2019-02-11 22:39:48 +08:00
2009-08-22 06:23:24 +08:00
int getFailureCount() {return failureCount;}
private:
int failureCount;
2009-08-22 06:23:24 +08:00
};
#endif