Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkTestManager.cpp
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 #include "mitkTestManager.h"
13 
15 {
16  static mitk::TestManager instance;
17  return &instance;
18 }
19 
21 {
22  m_FailedTests = 0;
23  m_PassedTests = 0;
24 }
26 {
27  return m_FailedTests;
28 }
29 
31 {
32  return m_PassedTests;
33 }
35 {
36  m_FailedTests++;
37 }
39 {
40  m_PassedTests++;
41 }
void Initialize()
Must be called at the beginning of a test run.
static TestManager * GetInstance()
void TestFailed()
Tell manager a subtest failed.
void TestPassed()
Tell manager a subtest passed.