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

Skip to content

Commit effb420

Browse files
committed
Renamed gc_tag to gc_tags
Added debug logging of suite cache query.
1 parent d61a8c8 commit effb420

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

source/core/ut_suite_builder.pkb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ create or replace package body ut_suite_builder is
2323

2424
gc_suite constant t_annotation_name := 'suite';
2525
gc_suitepath constant t_annotation_name := 'suitepath';
26-
gc_tag constant t_annotation_name := 'tags';
26+
gc_tags constant t_annotation_name := 'tags';
2727
gc_test constant t_annotation_name := ut_utils.gc_test_execute;
2828
gc_disabled constant t_annotation_name := 'disabled';
2929
gc_displayname constant t_annotation_name := 'displayname';
@@ -44,7 +44,7 @@ create or replace package body ut_suite_builder is
4444
:= tt_annotations(
4545
gc_suite,
4646
gc_suitepath,
47-
gc_tag,
47+
gc_tags,
4848
gc_test,
4949
gc_disabled,
5050
gc_displayname,
@@ -513,8 +513,8 @@ create or replace package body ut_suite_builder is
513513
set_seq_no(l_test.after_test_list);
514514
end if;
515515

516-
if l_proc_annotations.exists( gc_tag) then
517-
add_tags_to_suite_item(a_suite, l_proc_annotations( gc_tag), l_test.tags, a_procedure_name);
516+
if l_proc_annotations.exists( gc_tags) then
517+
add_tags_to_suite_item(a_suite, l_proc_annotations( gc_tags), l_test.tags, a_procedure_name);
518518
end if;
519519

520520
if l_proc_annotations.exists( gc_throws) then
@@ -667,8 +667,8 @@ create or replace package body ut_suite_builder is
667667
l_after_each_list := add_executables( a_suite.object_owner, a_suite.object_name, a_annotations.by_name(gc_aftereach), gc_aftereach );
668668
end if;
669669

670-
if a_annotations.by_name.exists(gc_tag) then
671-
add_tags_to_suite_item(a_suite, a_annotations.by_name(gc_tag),a_suite.tags);
670+
if a_annotations.by_name.exists(gc_tags) then
671+
add_tags_to_suite_item(a_suite, a_annotations.by_name(gc_tags),a_suite.tags);
672672
end if;
673673
a_suite.disabled_flag := ut_utils.boolean_to_int(a_annotations.by_name.exists(gc_disabled));
674674

source/core/ut_suite_manager.pkb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ create or replace package body ut_suite_manager is
1717
*/
1818

1919
gc_suitpath_error_message constant varchar2(100) := 'Suitepath exceeds 1000 CHAR on: ';
20-
gc_tag_errmsg constant integer := 450;
2120

2221
gc_get_cache_suite_sql constant varchar2(32767) :=
2322
q'[with
@@ -553,6 +552,8 @@ create or replace package body ut_suite_manager is
553552
l_sql := replace(l_sql,'{:random_seed:}',get_random_seed_sql(a_random_seed));
554553
l_sql := replace(l_sql,'{:owner:}',l_ut_owner);
555554

555+
ut_event_manager.trigger_event(ut_event_manager.gc_debug, ut_key_anyvalues().put('l_sql',l_sql) );
556+
556557
open l_result for l_sql using l_path, l_path, upper(a_object_name), upper(a_procedure_name), l_tags, a_random_seed;
557558
return l_result;
558559
end;

0 commit comments

Comments
 (0)