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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c787e47
Added support for multiple occurrences of before and after blocks.
jgebal Mar 4, 2018
2399981
tmp
jgebal Mar 14, 2018
2631355
Fixed issue with null items list.
jgebal Mar 15, 2018
a05475a
Redefined event listeners mechanism.
jgebal Mar 25, 2018
f955d2a
Redefined event listeners mechanism.
jgebal Mar 25, 2018
430f76f
Fixed minor bug in XUnit reporter (showing CDATA for errors even when…
jgebal Mar 25, 2018
2537ced
Changed propagation of rollback. Now rollback will propagate from par…
jgebal Mar 29, 2018
9308662
Fixed examples.
jgebal Mar 29, 2018
17ee8cb
Fixed test for empty description in 11g.
jgebal Mar 29, 2018
93be873
Fixed test for empty description in 11g.
jgebal Mar 29, 2018
75b96c3
Fixed double warning on missing endcontext annotation.
jgebal Mar 29, 2018
a6dadcc
fix in test to overcome 11g XML missing attributes in 3.0.4
jgebal Mar 30, 2018
4bc7ced
Merge branch 'develop' into feature/support_of_context
jgebal Apr 7, 2018
8a26845
Fixes after merging from develop.
jgebal Apr 7, 2018
e9c4e80
Fixed test failure on 11g R2 - some issues with LIKE operator, long p…
jgebal Apr 7, 2018
bfbfa43
Updated documentation.
jgebal Apr 7, 2018
9cd61bf
Marking first column as bold
jgebal Apr 7, 2018
1adf35d
Changed the way reporters events are registered.
jgebal Apr 14, 2018
71d0b70
Fixed issues with comment-replace in big package specs.
jgebal Apr 14, 2018
8617613
Updated test for comments removal to include multi-line comments with…
jgebal Apr 16, 2018
51ba943
Updated documentation with new and changed annotations.
jgebal Apr 16, 2018
ad3f830
Changed behaviour for duplicate annotations - first wins.
jgebal Apr 19, 2018
4346b57
Updates to documentation.
jgebal Apr 20, 2018
b1ff0fc
Updates to documentation.
jgebal Apr 20, 2018
ab5a1ca
Updated and extended documentation for annotations.
jgebal Apr 22, 2018
e672ef0
Added description of `context` to annotations documentation.
jgebal Apr 22, 2018
9897247
Merge remote-tracking branch 'origin/develop' into feature/support_of…
jgebal Apr 22, 2018
b2df93e
Integrated with develop branch changes.
jgebal Apr 22, 2018
d604127
Removed empty header from documentation.
jgebal Apr 24, 2018
9afb7be
A bit of code cleanup and tests alignment.
jgebal Apr 25, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed issues with comment-replace in big package specs.
  • Loading branch information
jgebal committed Apr 14, 2018
commit 71d0b7041e0ee5b34b05daf056a5508708ccf855
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
--Shows that even a very large package specification can be parsed quite quickly
--Clear Screen
Set Serveroutput On Size Unlimited format truncated
set serveroutput on
set echo off
--install the example unit test packages
@@tst_pkg_huge.pks

declare
l_suites ut_suite_items;
l_items ut_suite_items;
begin
l_suites := ut_suite_manager.configure_execution_by_path(ut_varchar2_list(USER||'.TST_PKG_HUGE'));
l_items := treat(
treat( treat( l_suites( 1 ) as ut_logical_suite ).items( 1 ) as ut_logical_suite ).items( 1 )
as ut_logical_suite
).items;
dbms_output.put_line('Created '||l_items.count||' tests in suite');
dbms_output.put_line(' Last test name='||l_items(l_items.last).name);
end;
/

Expand Down
7 changes: 2 additions & 5 deletions source/core/annotations/ut_annotation_parser.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ create or replace package body ut_annotation_parser as
-- parse the comment block for the syntactically correct annotations and store them as an array
add_annotations(a_annotations, l_proc_comments, a_comments, l_proc_name);

l_annot_proc_ind := regexp_instr(srcstr => a_source
,pattern => ';'
,occurrence => 1
,position => l_annot_proc_ind + length(l_annot_proc_block) );
l_annot_proc_ind := instr(a_source, ';', l_annot_proc_ind + length(l_annot_proc_block) );
end loop;
end add_procedure_annotations;

Expand Down Expand Up @@ -197,7 +194,7 @@ create or replace package body ut_annotation_parser as
l_comment_index positive;
begin

l_source := ut_utils.replace_multiline_comments(l_source);
l_source := ut_utils.replace_multiline_comments(l_source);

-- replace all single line comments with {COMMENT#12} element and store it's content for easier processing
-- this call modifies l_source
Expand Down
6 changes: 3 additions & 3 deletions source/core/ut_utils.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,9 @@ procedure append_to_clob(a_src_clob in out nocopy clob, a_clob_table t_clob_tab,
end if;

if l_end = 0 then
append_to_clob(l_result, dbms_lob.substr(a_source, l_length-l_offset, l_offset));
append_to_clob(l_result, substr(a_source, l_offset, l_length-l_offset));
else
append_to_clob(l_result, dbms_lob.substr(a_source, l_end-l_offset, l_offset));
append_to_clob(l_result, substr(a_source, l_offset, l_end-l_offset));
end if;
end if;
l_offset := l_end;
Expand All @@ -635,7 +635,7 @@ procedure append_to_clob(a_src_clob in out nocopy clob, a_clob_table t_clob_tab,
l_escaped_text_start := instr(a_source,q'[q']',l_offset);
end if;
end loop;
append_to_clob(l_result, dbms_lob.substr(a_source, offset=>l_end));
append_to_clob(l_result, substr(a_source, l_end));
return l_result;
end;

Expand Down