File tree Expand file tree Collapse file tree
source/expectations/data_values Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ create or replace type body ut_compound_data_value as
215215
216216 begin
217217 --TODO : Error on xml when same column is more then once in item data xml.Do we need to cleanup ??
218+ --TODO : Bring diffs row into same place for ref data cursor especially (how we going to do that so we dont break anyval etc)
218219 l_other := treat(a_other as ut_compound_data_value);
219220 l_diff_id := ut_compound_data_helper.get_hash(self.data_id||l_other.data_id);
220221
Original file line number Diff line number Diff line change @@ -901,6 +901,21 @@ Rows: [ 4 differences ]
901901 --Assert
902902 ut.expect(expectations.failed_expectations_data()).to_be_empty();
903903 end;
904+
905+ procedure compares_over_10000_rows
906+ as
907+ l_actual sys_refcursor;
908+ l_expected sys_refcursor;
909+ begin
910+ --Arrange
911+ open l_actual for select object_name from all_objects where rownum <=11000;
912+ open l_expected for select object_name from all_objects where rownum <=11000;
913+ --Act
914+ ut3.ut.expect(l_actual).to_equal(l_expected);
915+
916+ --Assert
917+ ut.expect(expectations.failed_expectations_data()).to_be_empty();
918+ end;
904919
905920 function get_cursor return sys_refcursor is
906921 l_cursor sys_refcursor;
@@ -1261,6 +1276,19 @@ Diff:%
12611276 ut.expect(expectations.failed_expectations_data()).to_be_empty();
12621277 end;
12631278
1279+ procedure cursor_joinby_compare_10000 is
1280+ l_actual SYS_REFCURSOR;
1281+ l_expected SYS_REFCURSOR;
1282+ begin
1283+ --Arrange
1284+ open l_actual for select level object_id, level || '_TEST' object_name from dual connect by level <=11000;
1285+ open l_expected for select level object_id, level || '_TEST' object_name from dual connect by level <=11000;
1286+ --Act
1287+ ut3.ut.expect(l_actual).to_equal(l_expected).join_by('OBJECT_ID');
1288+ --Assert
1289+ ut.expect(expectations.failed_expectations_data()).to_be_empty();
1290+ end;
1291+
12641292 procedure cursor_joinby_compare_fail is
12651293 l_actual SYS_REFCURSOR;
12661294 l_expected SYS_REFCURSOR;
Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ create or replace package test_expectations_cursor is
169169 --%test(Compares cursors with more than 1000 rows)
170170 procedure compares_over_1000_rows;
171171
172+ --%test(Compares cursors with more than 10000 rows)
173+ procedure compares_over_10000_rows;
174+
172175 --%test(Adds a warning when using depreciated syntax to_equal( a_expected sys_refcursor, a_exclude varchar2 ))
173176 procedure deprec_to_equal_excl_varch;
174177
@@ -231,6 +234,9 @@ create or replace package test_expectations_cursor is
231234
232235 --%test( Compare cursors join by single key more than 1000 rows)
233236 procedure cursor_joinby_compare_1000;
237+
238+ --%test( Compare cursors join by single key more than 10000 rows)
239+ procedure cursor_joinby_compare_10000;
234240
235241 --%test( Compare two column cursors join by and fail to match )
236242 procedure cursor_joinby_compare_fail;
You can’t perform that action at this time.
0 commit comments