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
34 commits
Select commit Hold shift + click to select a range
e41d6f9
Interim commit with lots of dirty code - got to a place where I get t…
jgebal Oct 30, 2018
f475b7c
Added `suite_cache`.
jgebal Nov 2, 2018
4dc48e6
Interim commit - performance check on Travis.
jgebal Nov 4, 2018
1611e09
Interim commit some fixes to old tests, examples and code itself.
jgebal Nov 4, 2018
15163a8
Resolved issue with sorting of nested-tables.
jgebal Nov 4, 2018
1b14bb5
Fixing re-enabled test.
jgebal Nov 4, 2018
3bc8da5
Adding missing items to uninstall.
jgebal Nov 4, 2018
8911f97
Small improvements and cleanup.
jgebal Nov 5, 2018
a1f6b34
Removing duplicate with block.
jgebal Nov 6, 2018
59f7738
Adding cache cleanup and "intelligent" join to all_source, only when …
jgebal Nov 11, 2018
cb9cf97
Resolving some sonar violations.
jgebal Nov 11, 2018
8779025
Moving away from full outer join.
jgebal Nov 11, 2018
b3e98be
Reorganizing code a bit.
jgebal Nov 11, 2018
64dfb41
Output buffer&reporters performance improvements
jgebal Nov 12, 2018
9ea805b
Increased fetch size for coverage sources tmp seeding.
jgebal Nov 12, 2018
248bf8c
Small refactoring.
jgebal Nov 13, 2018
8fc2ea6
Further optimizations to suite parsing.
jgebal Nov 15, 2018
3543e3d
Disabled `PLSQL_OPTIMIZE_LEVEL=0` for testing
jgebal Nov 15, 2018
23c0557
Fixed formal parameter names
jgebal Nov 15, 2018
f7f6811
Revert "Disabled `PLSQL_OPTIMIZE_LEVEL=0` for testing"
jgebal Nov 15, 2018
d002d18
Refactored procedure `get_unit_test_info` to return more relevant inf…
jgebal Nov 16, 2018
e1f1eec
Renamed `get_unit_test_info` to `get_suites_info` - the latter one wa…
jgebal Nov 16, 2018
d8d251f
Improved automation of `refresh_sources.sh`
jgebal Nov 16, 2018
eb3df21
Fixing failing test.
jgebal Nov 16, 2018
d211348
Added control over rollback behavior in `ut_runner.run`
jgebal Nov 17, 2018
f342195
Reverting rollback changes - they should go as a separate PR.
jgebal Nov 17, 2018
eeae79b
Added documentation for new functionality.
jgebal Nov 17, 2018
74ec9a1
Removed unused code.
jgebal Nov 18, 2018
44d61d9
Recovering exception handlers as they are needed for handling invalid…
jgebal Nov 18, 2018
360a889
Moved some of old tests into new tests.
jgebal Nov 18, 2018
0ee3ce2
Added missing endcontext in `test_ut_test`
jgebal Nov 18, 2018
48aa338
Removed unused constants.
jgebal Nov 18, 2018
b33aaae
Added additional test for display of parser warnings.
jgebal Nov 18, 2018
e8ea644
Merge branch 'develop' into feature/suite_query_api
jgebal Nov 18, 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
Resolving some sonar violations.
  • Loading branch information
jgebal committed Nov 11, 2018
commit cb9cf9790c869286f29363cffcce6aa48770e5fc
1 change: 0 additions & 1 deletion source/core/annotations/ut_annotation_cache_manager.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ create or replace package body ut_annotation_cache_manager as

procedure update_cache(a_object ut_annotated_object) is
l_cache_id integer;
l_current_schema varchar2(250) := ut_utils.ut_owner;
pragma autonomous_transaction;
begin
update ut_annotation_cache_info i
Expand Down
1 change: 0 additions & 1 deletion source/core/ut_metadata.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ create or replace package body ut_metadata as
end;

function get_source_definition_line(a_owner varchar2, a_object_name varchar2, a_line_no integer) return varchar2 is
l_cursor sys_refcursor;
l_view_name varchar2(128) := get_dba_view('dba_source');
l_line all_source.text%type;
c_key constant varchar2(500) := a_owner || '.' || a_object_name;
Expand Down
32 changes: 11 additions & 21 deletions source/core/ut_suite_builder.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ create or replace package body ut_suite_builder is
gc_endcontext
);

gc_placeholder constant varchar2(3) := '\\%';

gc_integer_exception constant varchar2(1) := 'I';
gc_named_exception constant varchar2(1) := 'N';

Expand Down Expand Up @@ -218,7 +216,6 @@ create or replace package body ut_suite_builder is
function get_exception_number (a_exception_var in varchar2) return integer is
l_exc_no integer;
l_exc_type varchar2(50);
l_sql varchar2(32767);
function remap_no_data_found (a_number integer) return integer is
begin
return case a_number when 100 then -1403 else a_number end;
Expand Down Expand Up @@ -260,7 +257,7 @@ create or replace package body ut_suite_builder is
l_exception_number_list ut_integer_list := ut_integer_list();
c_regexp_for_exception_no constant varchar2(30) := '^-?[[:digit:]]{1,5}$';
begin
/*the a_expected_error_codes is converted to a ut_varchar2_list after that is trimmed and filtered to left only valid exception numbers*/
--the a_expected_error_codes is converted to a ut_varchar2_list after that is trimmed and filtered to left only valid exception numbers
l_throws_list := ut_utils.trim_list_elements(ut_utils.string_to_table(a_annotation_text, ',', 'Y'));

for i in 1 .. l_throws_list.count
Expand Down Expand Up @@ -407,18 +404,15 @@ create or replace package body ut_suite_builder is
a_for_annotation varchar2,
a_procedure_name t_object_name := null
) is
l_annotation_name t_annotation_name;
l_line_no binary_integer;
begin
if a_annotations.exists(a_for_annotation) then
if a_annotations(a_for_annotation).count > 1 then
--start from second occurrence of annotation
l_line_no := a_annotations(a_for_annotation).next( a_annotations(a_for_annotation).first );
while l_line_no is not null loop
add_annotation_ignored_warning( a_suite, a_for_annotation, 'Duplicate annotation %%%.', l_line_no, a_procedure_name );
l_line_no := a_annotations(a_for_annotation).next( l_line_no );
end loop;
end if;
if a_annotations.exists(a_for_annotation) and a_annotations(a_for_annotation).count > 1 then
--start from second occurrence of annotation
l_line_no := a_annotations(a_for_annotation).next( a_annotations(a_for_annotation).first );
while l_line_no is not null loop
add_annotation_ignored_warning( a_suite, a_for_annotation, 'Duplicate annotation %%%.', l_line_no, a_procedure_name );
l_line_no := a_annotations(a_for_annotation).next( l_line_no );
end loop;
end if;
end;

Expand All @@ -430,8 +424,7 @@ create or replace package body ut_suite_builder is
a_invalid_annotations ut_varchar2_list
) is
l_annotation_name t_annotation_name;
l_warning varchar2(32767);
l_line_no binary_integer;
l_line_no binary_integer;
begin
if a_proc_annotations.exists(a_for_annotation) then
l_annotation_name := a_proc_annotations.first;
Expand Down Expand Up @@ -739,9 +732,8 @@ create or replace package body ut_suite_builder is

while l_context_pos is not null loop
l_end_context_pos := get_endcontext_position(l_context_pos, a_annotations.by_name );
if l_end_context_pos is null then
exit;
end if;

exit when l_end_context_pos is null;

l_context_items := ut_suite_items();
--create a sub-set of annotations to process as sub-suite (context)
Expand Down Expand Up @@ -1156,10 +1148,8 @@ create or replace package body ut_suite_builder is
a_skip_all_objects boolean := false
) return ut_suite_items is
l_suites ut_suite_items;
l_annotations_cursor sys_refcursor;
l_annotated_objects ut_annotated_objects;
l_suite_items ut_suite_items;
l_suite_data_cursor sys_refcursor;
begin
loop
fetch a_annotated_objects bulk collect into l_annotated_objects limit 10;
Expand Down