IrrIMGUI  0.3.1
Namespaces | Classes | Macros
UnitTest

Unit test related definitions. More...

Collaboration diagram for UnitTest:

Namespaces

 IrrIMGUI
 Main namespace for Irrlicht IMGUI binding.
 
 IrrIMGUI::UnitTest
 Contains unit test related definitions.
 

Classes

class  IrrIMGUI::UnitTest::BasicMemoryLeakDetectionPlugin
 This CppUTest plugin performs the basic memory leak detection in every unti test. More...
 
class  IrrIMGUI::UnitTest::IIMGUIHandleMock
 
class  IrrIMGUI::UnitTest::MockHelper
 This helper class contains definitions, that can not be in IMGUIHandleMock, to prevent tight coupling between DLL and Unit Test Framework. More...
 

Macros

#define CHECK_NOT_EQUAL(Argument1, Argument2)
 Checks if two arguments are not equal. More...
 
#define CHECK_EQUAL_TOLERANCE(ReferenceValue, Tolerance, TestValue)
 Checks if two values are equal with considering a tolerance. More...
 
#define CHECK_IN_RANGE(Minimum, Maximum, TestValue)
 Check a value in in range between minimum and maximum. More...
 
#define MOCK_FUNC(Name)
 Creates a mock entry into the mock database for the current function/method. More...
 
#define MOCK_ARG(Argument)
 Creates a mock entry for an argument of the current function mock. More...
 

Detailed Description

Unit test related definitions.

Macro Definition Documentation

#define CHECK_EQUAL_TOLERANCE (   ReferenceValue,
  Tolerance,
  TestValue 
)

Checks if two values are equal with considering a tolerance.

Parameters
ReferenceValueIs the reference value for that check.
ToleranceIs the tolerance, where the tested value must be inside.
TestValueIs the value to test.

Definition at line 64 of file UnitTest.h.

#define CHECK_IN_RANGE (   Minimum,
  Maximum,
  TestValue 
)

Check a value in in range between minimum and maximum.

Parameters
MinimumIs the lower border.
MaximumIs the higher border.
TestValueIs the value to test.

Definition at line 70 of file UnitTest.h.

#define CHECK_NOT_EQUAL (   Argument1,
  Argument2 
)

Checks if two arguments are not equal.

Parameters
Argument1Is the first argument to check.
Argument2Is the second argument to check.

Definition at line 58 of file UnitTest.h.

#define MOCK_ARG (   Argument)

Creates a mock entry for an argument of the current function mock.

Parameters
ArgumentIs the name of the argument.

Definition at line 78 of file UnitTest.h.

#define MOCK_FUNC (   Name)

Creates a mock entry into the mock database for the current function/method.

Parameters
NameIs the name of the function.

Definition at line 74 of file UnitTest.h.