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

Skip to content

Commit 1d6da23

Browse files
committed
addressed reviewer comments
1 parent a5600ea commit 1d6da23

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

source/core/ut_expectation_processor.pkb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,11 @@ create or replace package body ut_expectation_processor as
126126
l_caller_type_and_name varchar2(4000);
127127
l_line_no integer;
128128
l_owner varchar2(1000);
129-
l_object_name varchar2(1000);
130-
--c_expectation_search_pattern constant varchar2(50) := '(.*\.UT_EXPECTATION_RESULT\s)(.*\.UT_EXPECTATION[A-Z0-9#_$]*\.*\s)+(.*)\s';
131-
129+
l_object_name varchar2(1000);
132130
-- in 12.2 format_call_stack reportes not only package name, but also the procedure name
133131
-- when 11g and 12c reports only package name
134132
c_expectation_search_pattern constant varchar2(500) := '(.*\.UT_EXPECTATION_RESULT\s+)(.*\.UT_EXPECTATION[A-Z0-9#_$]*(\.\w+)?.*\s+)+(.*)\s';
135133
begin
136-
--dbms_output.put_line(c_call_stack);
137134
l_caller_stack_line := regexp_substr( c_call_stack, c_expectation_search_pattern, 1, 1, 'm', 4);
138135
l_line_no := to_number( regexp_substr(l_caller_stack_line,'^\dx[0-9a-f]+\s+(\d+)',subexpression => 1) );
139136
l_caller_type_and_name := substr( l_caller_stack_line, 23 );

tests/RunAll.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ exec ut_coverage.coverage_start_develop();
129129

130130
@@lib/RunTest.sql ut_reporters/ut_coverage_sonar_reporter.AcceptsFileMapping.sql
131131
@@lib/RunTest.sql ut_reporters/ut_coverage_sonar_reporter.BuildsSonarCoverageReport.sql
132-
@@lib/RunTest.sql ut_reporters/ut_documentation_reporter.ProducesExpectedOutputs.sql
132+
@@lib/RunTest.sql ut_reporters/ut_documentation_reporter.providesCorrectLineFromStacktrace.sql
133133
@@lib/RunTest.sql ut_reporters/ut_sonar_test_reporter.AcceptsFileMapping.sql
134134
@@lib/RunTest.sql ut_reporters/ut_sonar_test_reporter.ProducesExpectedOutputs.sql
135135
@@lib/RunTest.sql ut_reporters/ut_teamcity_reporter.ProducesExpectedOutputs.sql

tests/ut_reporters/ut_documentation_reporter.ProducesExpectedOutputs.sql renamed to tests/ut_reporters/ut_documentation_reporter.providesCorrectLineFromStacktrace.sql

File renamed without changes.

0 commit comments

Comments
 (0)