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

Skip to content

Commit 88a0b83

Browse files
committed
test
1 parent 4ae671f commit 88a0b83

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

source/core/ut_expectation_processor.pkb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,15 @@ create or replace package body ut_expectation_processor as
130130
-- in 12.2 format_call_stack reportes not only package name, but also the procedure name
131131
-- when 11g and 12c reports only package name
132132
c_expectation_search_pattern constant varchar2(500) :=
133-
'(^.*\.((UT_EXPECTATION[A-Z0-9#_$]*)|(UT)|(UTASSERT2?))(\.[A-Z0-9#_$]+)?$\s)+\s*(.*)';
133+
'(^.*\.(UT_EXPECTATION[A-Z0-9#_$]*|UT|UTASSERT2?)(\.[A-Z0-9#_$]+)?$\s)+(.*)';
134134
begin
135-
l_caller_stack_line := regexp_substr( c_call_stack, c_expectation_search_pattern, 1, 1, 'm', 7);
136-
l_line_no := to_number( regexp_substr(l_caller_stack_line,'^\dx[0-9a-f]+\s+(\d+)',subexpression => 1) );
137-
l_caller_type_and_name := substr( l_caller_stack_line, 23 );
135+
dbms_output.put_line(c_call_stack);
136+
l_caller_stack_line := regexp_substr( c_call_stack, c_expectation_search_pattern, 1, 1, 'm', 4);
137+
l_line_no := to_number( regexp_substr(l_caller_stack_line,'0x[0-9a-f]+\s+(\d+)',subexpression => 1) );
138+
l_caller_type_and_name := trim(regexp_substr(l_caller_stack_line,'0x[0-9a-f]+\s+\d+\s+(.+)',subexpression => 1));
138139
if l_caller_stack_line like '%.%' then
139-
l_owner := regexp_substr(l_caller_stack_line,'\s([A-Za-z0-9$#_]+)\.([A-Za-z0-9$#_]|\.)+$',subexpression => 1);
140-
l_object_name := regexp_substr(l_caller_stack_line,'\s([A-Za-z0-9$#_]+)\.(([A-Za-z0-9$#_]|\.)+)$',subexpression => 2);
140+
l_owner := regexp_substr(l_caller_stack_line,'([A-Za-z0-9$#_]+)\.([A-Za-z0-9$#_]|\.)+',subexpression => 1);
141+
l_object_name := regexp_substr(l_caller_stack_line,'([A-Za-z0-9$#_]+)\.(([A-Za-z0-9$#_]|\.)+)',subexpression => 2);
141142
end if;
142143
return
143144
case when l_owner is not null and l_object_name is not null and l_line_no is not null then

0 commit comments

Comments
 (0)