Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkTestManager.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkTestManager_h
14 #define mitkTestManager_h
15 
16 #include <MitkCoreExports.h>
17 
18 namespace mitk
19 {
27  {
28  public:
29  TestManager() : m_FailedTests(0), m_PassedTests(0) {}
30 
36 
38  void Initialize();
39 
45 
51 
53  void TestFailed();
54 
56  void TestPassed();
57 
58  virtual ~TestManager() {}
59 
60  protected:
63  };
64 }
65 
66 #endif
#define MITKCORE_EXPORT
Manages the counting of passed and failed sub-tests within a test run.
void TestPassed()
Tell the manager that a sub-test has passed. Increments the pass counter.
void Initialize()
Must be called at the beginning of a test run to reset all counters.
int NumberOfFailedTests()
Return the number of failed sub-tests.
int NumberOfPassedTests()
Return the number of passed sub-tests.
virtual ~TestManager()
static TestManager * GetInstance()
Return the singleton instance of the TestManager.
void TestFailed()
Tell the manager that a sub-test has failed. Increments the failure counter.
Find image slices visible on a given plane.