Skip to content

Commit 530bd88

Browse files
committed
Fixed issue when passing duplicate paths to coverage was causing no coverage to be reported at all.
1 parent 8072ce8 commit 530bd88

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

source/api/ut_runner.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ create or replace package body ut_runner is
7171
schema_names => a_coverage_schemes,
7272
exclude_objects => to_ut_object_list(a_exclude_objects),
7373
include_objects => to_ut_object_list(a_include_objects),
74-
file_mappings => a_source_file_mappings
74+
file_mappings => set(a_source_file_mappings)
7575
);
76-
l_items_to_run := ut_run( ut_suite_manager.configure_execution_by_path(a_paths), a_paths, l_coverage_options, a_test_file_mappings );
76+
l_items_to_run := ut_run( ut_suite_manager.configure_execution_by_path(a_paths), a_paths, l_coverage_options, set(a_test_file_mappings) );
7777
l_items_to_run.do_execute(l_listener);
7878

7979
cleanup_temp_tables;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
create or replace type body ut_file_mapping as
2+
map member function pk return varchar2 is
3+
begin
4+
return file_name;
5+
end;
6+
end;
7+
/

source/core/types/ut_file_mapping.tps

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ create or replace type ut_file_mapping as object(
22
file_name varchar2(4000),
33
object_owner varchar2(4000),
44
object_name varchar2(4000),
5-
object_type varchar2(4000)
5+
object_type varchar2(4000),
6+
map member function pk return varchar2
67
)
78
/

source/install.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ whenever sqlerror exit failure rollback
115115
@@core/types/ut_event_listener.tpb
116116
@@core/types/ut_expectation_result.tpb
117117
@@core/types/ut_reporter_base.tpb
118+
@@core/types/ut_file_mapping.tpb
118119
@@core/types/ut_executable.tpb
119120
@@core/types/ut_console_reporter_base.tps
120121
@@core/types/ut_console_reporter_base.tpb

0 commit comments

Comments
 (0)