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

Skip to content

Commit 227fe70

Browse files
committed
Merge remote-tracking branch 'remotes/upstream/develop' into fix-for-invalid-package-v2
2 parents 40a9b44 + 2011354 commit 227fe70

114 files changed

Lines changed: 749 additions & 792 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

source/api/ut.pkb

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,22 @@ create or replace package body ut is
9494
rollback;
9595
end;
9696

97+
function run(a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console integer := 0) return ut_varchar2_list pipelined is
98+
l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter());
99+
l_paths ut_varchar2_list := ut_varchar2_list(sys_context('userenv', 'current_schema'));
100+
l_lines sys_refcursor;
101+
l_line varchar2(4000);
102+
begin
103+
run_autonomous(l_paths, a_reporter, a_color_console );
104+
l_lines := ut_output_buffer.get_lines_cursor(l_reporter.reporter_id);
105+
loop
106+
fetch l_lines into l_line;
107+
exit when l_lines%notfound;
108+
pipe row(l_line);
109+
end loop;
110+
close l_lines;
111+
end;
112+
97113
function run(a_paths ut_varchar2_list, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console integer := 0) return ut_varchar2_list pipelined is
98114
l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter());
99115
l_lines sys_refcursor;
@@ -109,7 +125,7 @@ create or replace package body ut is
109125
close l_lines;
110126
end;
111127

112-
function run(a_path varchar2 := null, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console integer := 0) return ut_varchar2_list pipelined is
128+
function run(a_path varchar2, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console integer := 0) return ut_varchar2_list pipelined is
113129
l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter());
114130
l_paths ut_varchar2_list := ut_varchar2_list(coalesce(a_path, sys_context('userenv', 'current_schema')));
115131
l_lines sys_refcursor;
@@ -125,14 +141,19 @@ create or replace package body ut is
125141
close l_lines;
126142
end;
127143

144+
procedure run(a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false) is
145+
begin
146+
ut.run(ut_varchar2_list(sys_context('userenv', 'current_schema')), a_reporter, a_color_console);
147+
end;
148+
128149
procedure run(a_paths ut_varchar2_list, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false) is
129150
l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter());
130151
begin
131152
ut_runner.run(a_paths, l_reporter, a_color_console);
132153
ut_output_buffer.lines_to_dbms_output(l_reporter.reporter_id);
133154
end;
134155

135-
procedure run(a_path varchar2 := null, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false) is
156+
procedure run(a_path varchar2, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false) is
136157
l_paths ut_varchar2_list := ut_varchar2_list(coalesce(a_path, sys_context('userenv', 'current_schema')));
137158
begin
138159
ut.run(l_paths, a_reporter, a_color_console);

source/api/ut.pks

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,17 @@ create or replace package ut authid current_user as
4545

4646
procedure fail(a_message in varchar2);
4747

48+
function run(a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console integer := 0) return ut_varchar2_list pipelined;
49+
4850
function run(a_paths ut_varchar2_list, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console integer := 0) return ut_varchar2_list pipelined;
4951

50-
function run(a_path varchar2 := null, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console integer := 0) return ut_varchar2_list pipelined;
52+
function run(a_path varchar2, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console integer := 0) return ut_varchar2_list pipelined;
53+
54+
procedure run(a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false);
5155

5256
procedure run(a_paths ut_varchar2_list, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false);
5357

54-
procedure run(a_path varchar2 := null, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false);
58+
procedure run(a_path varchar2, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false);
5559

5660
end ut;
5761
/

tests/RunAll.sql

Lines changed: 95 additions & 77 deletions
Large diffs are not rendered by default.

tests/asssertions/ut.expect.to_be_between.GivesFailureForDifferentValues.sql

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/asssertions/ut.expect.to_be_between.GivesFailureWhenActualIsNull.sql

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/asssertions/ut.expect.to_be_between.GivesFailureWhenBothActualAndExpectedRangeIsNull.sql

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/asssertions/ut.expect.to_be_between.GivesFailureWhenExpectedRangeIsNull.sql

Lines changed: 0 additions & 48 deletions
This file was deleted.

tests/asssertions/ut.expect.to_be_between.GivesSuccessWhenDifferentTypes.sql

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/asssertions/ut.expect.to_be_between.GivesTrueForCorrectValues.sql

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/asssertions/ut.expect.to_be_between.with_text.GivesTheProvidedTextAsMessage.sql

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)