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

Skip to content

Commit 7d42cae

Browse files
authored
Merge branch 'develop' into enchance-reporting
2 parents d6bd078 + 9096940 commit 7d42cae

4 files changed

Lines changed: 28 additions & 21 deletions

File tree

.gitattributes

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
2-
.gitattributes export-ignore
3-
.gitignore export-ignore
4-
.gitmodules export-ignore
5-
.travis.yml export-ignore
6-
7-
.travis export-ignore
8-
9-
^docs/* linguist-documentation
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
.gitmodules export-ignore
4+
.travis.yml export-ignore
5+
mkdocs.yml export-ignore
6+
.travis export-ignore
7+
sonar-project.properties export-ignore
8+
^tests/* export-ignore
9+
^development/* export-ignore
10+
^docs/* linguist-documentation

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
55
# User-specific stuff:
66
.idea/
7+
.sonar/
78
site/
89
pages/
910
release/

client_source/sqlplus/ut_run.sql

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,23 @@ declare
143143
function is_reporter(a_reporter_name varchar2) return varchar2 is
144144
l_reporter_name varchar2(4000);
145145
l_dummy integer;
146-
e_invalid_reporter exception;
147-
pragma exception_init (e_invalid_reporter,-44002);
146+
l_owner varchar2(4000);
147+
e_invalid_object exception;
148+
e_not_a_reporter exception;
149+
pragma exception_init (e_invalid_object,-44002);
150+
pragma exception_init (e_not_a_reporter,-6550);
148151
begin
149-
l_reporter_name := dbms_assert.simple_sql_name(a_reporter_name);
150-
select 1
151-
into l_dummy
152-
from all_types
153-
where connect_by_isleaf = 1
154-
and type_name = 'UT_REPORTER_BASE'
155-
connect by type_name = prior supertype_name
156-
start with type_name = upper(l_reporter_name);
152+
l_reporter_name := upper(dbms_assert.simple_sql_name(a_reporter_name));
153+
-- a report is a valid reporter if it can be assigned as element of ut_reporters collection
154+
execute immediate
155+
'declare
156+
r ut_reporters;
157+
begin
158+
r := ut_reporters('||l_reporter_name||'());
159+
end;';
157160
return l_reporter_name;
158161
exception
159-
when no_data_found or e_invalid_reporter then
162+
when e_not_a_reporter or e_invalid_object then
160163
raise_application_error(-20000, 'Invalid reporter name specified: '||a_reporter_name);
161164
end;
162165

source/core/coverage/ut_coverage.pkb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ create or replace package body ut_coverage is
253253

254254
if not ut_coverage_helper.is_develop_mode() then
255255
--skip all the utplsql framework objects and all the unit test packages that could potentially be reported by coverage.
256-
l_skipped_objects := ut_utils.get_utplsql_objects_list() multiset union all g_unit_test_packages multiset union all g_exclude_list;
256+
l_skipped_objects := ut_utils.get_utplsql_objects_list()
257+
multiset union all g_unit_test_packages
258+
multiset union all coalesce(g_exclude_list, ut_object_names());
257259
end if;
258260

259261
--prepare global temp table with sources

0 commit comments

Comments
 (0)