/
Test.h
executable file
·94 lines (84 loc) · 2.32 KB
1
2
3
4
5
6
7
8
/* Test.h - This class creates test cases for various MojoMerge objects.
*
*/
#ifndef _TEST_H_
#define _TEST_H_
#include "Hunk.h"
9
#include "FolderHunk.h"
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
namespace MojoMerge
{
class Test
{
public:
/* TestGNUDiff_TwoWay
* Tests the two-way diff functionality in GNUDiff and sends the
* output results to the debug window
* Params
* none
* Returns
* First hunk of a hunk list, or NULL if no differences found.
*/
static Hunk *TestGNUDiff_TwoWay();
/* TestGNUDiff_ThreeWay
* Tests the three-way diff functionality in GNUDiff and sends the
* output results to the debug window
* Params
* none
* Returns
* First hunk of a hunk list, or NULL if no differences found.
*/
static Hunk *TestGNUDiff_ThreeWay();
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* TestLineBuffer
* Tests the functionality of the LineBuffer object
* Params
* none
* Returns
*/
static void TestLineBuffer();
/* TestMerge_TwoWay
* Tests the two-way merge functionality by merging the result of
* the TestGNUDiff_TwoWay
* Params
* none
* Returns
* none
*/
static void TestMerge_TwoWay();
/* TestStack
* Tests the Stack object
* Params
* none
* Returns
* none
*/
static void TestStack();
/* TestCompareFolders
* Tests the CompareFolders object
* Params
* none
* Returns
* none
*/
static void TestCompareFolders();
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* TestCompareFilesUI
* Tests the CompareFilesUI object
*
* Params
* none
* Returns
* none
*/
static void TestCompareFilesUI();
/* TestCompareFilesUI3Way
* Tests the CompareFilesUI object with 3-way diff
* Params
* none
* Returns
* none
*/
static void TestCompareFilesUI3Way();
89
private:
90
static void PrintHunks(FolderHunk *FirstHunk, int Indent);
91
92
93
};
}
94
#endif