-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.h
83 lines (62 loc) · 1.45 KB
/
test.h
1
2
3
4
5
6
7
8
9
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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
#ifndef TEST_H
#define TEST_H
#include <time.h>
#include <windows.h>
#include "file.h"
//===================================
//===================================
//------- unit test -----------------------------------------
void tempIndexTest();
void totalNodeTest0();
void totalNodeTest1();
void tree0();
void tree1();
void treeAdd0();
void treeAdd1();
void balanceTest0();
void balanceTest1();
void zig0();
void zag0();
void removeCase0();
void removeCase1();
void removeCase2();
void removeCase3();
void removeCase4();
void removeCase5();
void treeRemove0();
void treeRemove1();
void treeRemove2();
void treeFetch0();
void treeFetch1();
void treePrint0();
void treePrint1();
void fileTree0();
void indexFile0();
void fileAddNode();
void fileFetchNode();
void fileViewNode();
void fileDeleteNode();
//==============================
//==============================
//---- performance ----
void fetchPerformance();
void performance0();
void performance1();
//-------correct test---------
void correctTest();
//------ abnormal test ------
void abnormalTest();
// ----round test ----------
void roundTest();
// this is not test!!!
// this is not test!!!
// this is not test!!!
//=====================================
//---------TestTime.cpp------------------------------------
// this function is write to get the time cost of setting tree
void setTreeTime();
//balance time
void balanceTimeTest();
// time cost use different cache size
void cacheTime();
#endif