-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTestOutcome.ipf
executable file
·89 lines (71 loc) · 1.82 KB
/
TestOutcome.ipf
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
84
85
86
87
88
89
#pragma rtGlobals=1 // Use modern global access method.
// TestOutcome -- a component of IgorUnit
// This data type represents information about the outcome/result of a run test
#ifndef IGORUNIT_TESTOUTCOME
#define IGORUNIT_TESTOUTCOME
Structure TestOutcome
STRUCT UnitTest test
Variable duration
Variable result_code
String message
EndStructure
Function TO_init(to, test, duration, result_code, message)
STRUCT TestOutcome &to
STRUCT UnitTest &test
Variable duration
Variable result_code
String message
TO_set(to, test, duration, result_code, message)
End
Function TO_set(to, test, duration, result_code, message)
STRUCT TestOutcome &to
STRUCT UnitTest &test
Variable duration
Variable result_code
String message
to.test = test
to.duration = duration
to.result_code = result_code
to.message = message
End
Function/S TO_getGroupname(to)
STRUCT TestOutcome &to
return UnitTest_getGroupname(to.test)
End
Function/S TO_getTestname(to)
STRUCT TestOutcome &to
return UnitTest_getTestname(to.test)
End
Function/S TO_getFuncname(to)
STRUCT TestOutcome &to
return UnitTest_getFuncname(to.test)
End
Function/S TO_getDocString(to)
STRUCT TestOutcome &to
return UnitTest_getDocString(to.test)
End
Function TO_getIndex(to)
STRUCT TestOutcome &to
return UnitTest_getIndex(to.test)
End
Function/S TO_getMessage(to)
STRUCT TestOutcome &to
return to.message
End
Function TO_getResult(to)
STRUCT TestOutcome &to
return to.result_code
End
Function TO_getDuration(to)
STRUCT TestOutcome &to
return to.duration
End
Function/S TO_getFilename(to)
STRUCT TestOutcome &to
return UnitTest_getFilename(to.test)
End
Function TO_getLineNumber(to)
STRUCT TestOutcome &to
return UnitTest_getLineNumber(to.test)
End
#endif