File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 44# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
55# User-specific stuff:
66.idea /
7+ .sonar /
78site /
89pages /
910release /
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments