-
Notifications
You must be signed in to change notification settings - Fork 188
Expand file tree
/
Copy pathut_expectation.tps
More file actions
178 lines (154 loc) · 14.5 KB
/
ut_expectation.tps
File metadata and controls
178 lines (154 loc) · 14.5 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
create or replace type ut_expectation force under ut_expectation_base(
/*
utPLSQL - Version 3
Copyright 2016 - 2021 utPLSQL Project
Licensed under the Apache License, Version 2.0 (the "License"):
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
--shortcuts
member procedure to_be_null(self in ut_expectation),
member procedure to_be_not_null(self in ut_expectation),
member procedure not_to_be_null(self in ut_expectation),
member procedure not_to_be_not_null(self in ut_expectation),
member procedure to_be_true(self in ut_expectation),
member procedure to_be_false(self in ut_expectation),
member procedure not_to_be_true(self in ut_expectation),
member procedure not_to_be_false(self in ut_expectation),
member procedure to_be_empty(self in ut_expectation),
member procedure not_to_be_empty(self in ut_expectation),
-- this is done to provide strong type comparison. other comporators should be implemented in the type-specific classes
member procedure to_equal(self in ut_expectation, a_expected anydata, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected anydata, a_exclude varchar2, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected anydata, a_exclude ut_varchar2_list, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected blob, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected boolean, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected clob, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected date, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected number, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected sys_refcursor, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected sys_refcursor, a_exclude varchar2, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected sys_refcursor, a_exclude ut_varchar2_list, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected varchar2, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected yminterval_unconstrained, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected dsinterval_unconstrained, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected json_element_t, a_nulls_are_equal boolean := null),
member procedure to_equal(self in ut_expectation, a_expected json, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected anydata, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected anydata, a_exclude varchar2, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected anydata, a_exclude ut_varchar2_list, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected blob, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected boolean, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected clob, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected date, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected number, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected sys_refcursor, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected sys_refcursor, a_exclude varchar2, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected sys_refcursor, a_exclude ut_varchar2_list, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected varchar2, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected yminterval_unconstrained, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected dsinterval_unconstrained, a_nulls_are_equal boolean := null),
member procedure not_to_equal(self in ut_expectation, a_expected json_element_t, a_nulls_are_equal boolean := null),
member procedure to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 := null),
member procedure to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 := null),
member procedure not_to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 := null),
member procedure not_to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 := null),
member procedure to_be_between(self in ut_expectation, a_lower_bound date, a_upper_bound date),
member procedure to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained),
member procedure to_be_between(self in ut_expectation, a_lower_bound number, a_upper_bound number),
member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained),
member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained),
member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained),
member procedure to_be_between(self in ut_expectation, a_lower_bound varchar2, a_upper_bound varchar2),
member procedure to_be_between(self in ut_expectation, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained),
member procedure to_be_greater_or_equal(self in ut_expectation, a_expected date),
member procedure to_be_greater_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained),
member procedure to_be_greater_or_equal(self in ut_expectation, a_expected number),
member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_unconstrained),
member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained),
member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained),
member procedure to_be_greater_or_equal(self in ut_expectation, a_expected yminterval_unconstrained),
member procedure to_be_greater_than(self in ut_expectation, a_expected date),
member procedure to_be_greater_than(self in ut_expectation, a_expected dsinterval_unconstrained),
member procedure to_be_greater_than(self in ut_expectation, a_expected number),
member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_unconstrained),
member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained),
member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_tz_unconstrained),
member procedure to_be_greater_than(self in ut_expectation, a_expected yminterval_unconstrained),
member procedure to_be_less_or_equal(self in ut_expectation, a_expected date),
member procedure to_be_less_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained),
member procedure to_be_less_or_equal(self in ut_expectation, a_expected number),
member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_unconstrained),
member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained),
member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained),
member procedure to_be_less_or_equal(self in ut_expectation, a_expected yminterval_unconstrained),
member procedure to_be_less_than(self in ut_expectation, a_expected date),
member procedure to_be_less_than(self in ut_expectation, a_expected dsinterval_unconstrained),
member procedure to_be_less_than(self in ut_expectation, a_expected number),
member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_unconstrained),
member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained),
member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_tz_unconstrained),
member procedure to_be_less_than(self in ut_expectation, a_expected yminterval_unconstrained),
member procedure not_to_be_between(self in ut_expectation, a_lower_bound date, a_upper_bound date),
member procedure not_to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained),
member procedure not_to_be_between(self in ut_expectation, a_lower_bound number, a_upper_bound number),
member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained),
member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained),
member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained),
member procedure not_to_be_between(self in ut_expectation, a_lower_bound varchar2, a_upper_bound varchar2),
member procedure not_to_be_between(self in ut_expectation, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained),
member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected date),
member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained),
member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected number),
member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_unconstrained),
member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained),
member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained),
member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected yminterval_unconstrained),
member procedure not_to_be_greater_than(self in ut_expectation, a_expected date),
member procedure not_to_be_greater_than(self in ut_expectation, a_expected dsinterval_unconstrained),
member procedure not_to_be_greater_than(self in ut_expectation, a_expected number),
member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_unconstrained),
member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained),
member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_tz_unconstrained),
member procedure not_to_be_greater_than(self in ut_expectation, a_expected yminterval_unconstrained),
member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected date),
member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained),
member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected number),
member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_unconstrained),
member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained),
member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained),
member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected yminterval_unconstrained),
member procedure not_to_be_less_than(self in ut_expectation, a_expected date),
member procedure not_to_be_less_than(self in ut_expectation, a_expected dsinterval_unconstrained),
member procedure not_to_be_less_than(self in ut_expectation, a_expected number),
member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_unconstrained),
member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained),
member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_tz_unconstrained),
member procedure not_to_be_less_than(self in ut_expectation, a_expected yminterval_unconstrained),
member procedure to_contain(self in ut_expectation, a_expected sys_refcursor),
member procedure not_to_contain(self in ut_expectation, a_expected sys_refcursor),
member procedure to_contain(self in ut_expectation, a_expected anydata),
member procedure not_to_contain(self in ut_expectation, a_expected anydata),
member function to_be_within(a_dist number) return ut_be_within,
member function to_be_within(a_dist dsinterval_unconstrained) return ut_be_within,
member function to_be_within(a_dist yminterval_unconstrained) return ut_be_within,
member function to_be_within_pct(a_dist number) return ut_be_within_pct,
member function not_to_be_within(a_dist number) return ut_be_within,
member function not_to_be_within(a_dist dsinterval_unconstrained) return ut_be_within,
member function not_to_be_within(a_dist yminterval_unconstrained) return ut_be_within,
member function not_to_be_within_pct(a_dist number) return ut_be_within_pct
)
not final
/