Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22549db

Browse files
committed
Fixed stacktrace for failed expectations on chained matchers.
1 parent 3cae9a2 commit 22549db

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

source/core/ut_expectation_processor.pkb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ create or replace package body ut_expectation_processor as
159159
-- when 11g and 12c reports only package name
160160
function cut_header_and_expectations( a_stack varchar2 ) return varchar2 is
161161
begin
162-
return regexp_substr( a_stack, '(.*\.(UT_EXPECTATION[A-Z0-9#_$]*|UT|UTASSERT2?)(\.[A-Z0-9#_$]+)?\s+)+((.|\s)*)', 1, 1, 'm', 4);
162+
return regexp_substr( a_stack, '(.*\.(UT_EQUAL|UT_BE_WITHIN[A-Z0-9#_$]*|UT_EXPECTATION[A-Z0-9#_$]*|UT|UTASSERT2?)(\.[A-Z0-9#_$]+)?\s+)+((.|\s)*)', 1, 1, 'm', 4);
163163
end;
164164
function cut_address_columns( a_stack varchar2 ) return varchar2 is
165165
begin
@@ -183,7 +183,6 @@ create or replace package body ut_expectation_processor as
183183
);
184184
end;
185185
begin
186-
-- dbms_output.put_line(a_call_stack);
187186
l_call_stack := cut_header_and_expectations( a_call_stack );
188187
l_call_stack := cut_address_columns( l_call_stack );
189188
l_call_stack := cut_framework_stack( l_call_stack );

0 commit comments

Comments
 (0)