You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the validation is executed at runtime, when the tests is executed.
This resolves issues related to the fact that some package constants may not exist or be valid at suite parse time.
In such scenario, the annotations continued to be ignored despite the fact that package constants were valid at test runtime.
With this change, tests can now have `--throws` annotations referencing constants that are undefined at compile time.
Resolves#1033
elsif regexp_like(a_expected_error_codes(i), c_regexp_for_exception_no) then
126
+
l_exception_number := a_expected_error_codes(i);
127
+
end if;
128
+
129
+
if l_exception_number is null then
130
+
a_item.put_warning(
131
+
'Invalid parameter value "'||a_expected_error_codes(i)||'" for "--%throws" annotation. Parameter ignored.',
132
+
self.procedure_name,
133
+
a_item.line_no
134
+
);
135
+
elsif l_exception_number >= 0 then
136
+
a_item.put_warning(
137
+
'Invalid parameter value "'||a_expected_error_codes(i)||'" for "--%throws" annotation. Exception value must be a negative integer. Parameter ignored.',
0 commit comments