Skip to content

Commit

Permalink
Fixed stacktrace for failed expectations on chained matchers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgebal committed Jun 21, 2020
1 parent 3cae9a2 commit 22549db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/core/ut_expectation_processor.pkb
Expand Up @@ -159,7 +159,7 @@ create or replace package body ut_expectation_processor as
-- when 11g and 12c reports only package name
function cut_header_and_expectations( a_stack varchar2 ) return varchar2 is
begin
return regexp_substr( a_stack, '(.*\.(UT_EXPECTATION[A-Z0-9#_$]*|UT|UTASSERT2?)(\.[A-Z0-9#_$]+)?\s+)+((.|\s)*)', 1, 1, 'm', 4);
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);
end;
function cut_address_columns( a_stack varchar2 ) return varchar2 is
begin
Expand All @@ -183,7 +183,6 @@ create or replace package body ut_expectation_processor as
);
end;
begin
-- dbms_output.put_line(a_call_stack);
l_call_stack := cut_header_and_expectations( a_call_stack );
l_call_stack := cut_address_columns( l_call_stack );
l_call_stack := cut_framework_stack( l_call_stack );
Expand Down

0 comments on commit 22549db

Please sign in to comment.