TestResult.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* ----------------------------------------------------------------------------
  2. * GTSAM Copyright 2010, Georgia Tech Research Corporation,
  3. * Atlanta, Georgia 30332-0415
  4. * All Rights Reserved
  5. * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
  6. * See LICENSE for the license information
  7. * -------------------------------------------------------------------------- */
  8. ///////////////////////////////////////////////////////////////////////////////
  9. //
  10. // TESTRESULT.H
  11. //
  12. // A TestResult is a collection of the history of some test runs. Right now
  13. // it just collects failures.
  14. //
  15. ///////////////////////////////////////////////////////////////////////////////
  16. #ifndef TESTRESULT_H
  17. #define TESTRESULT_H
  18. class Failure;
  19. class TestResult
  20. {
  21. public:
  22. TestResult ();
  23. virtual ~TestResult() {};
  24. virtual void testsStarted ();
  25. virtual void addFailure (const Failure& failure);
  26. virtual void testsEnded ();
  27. int getFailureCount() {return failureCount;}
  28. private:
  29. int failureCount;
  30. };
  31. #endif