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

Skip to content

Commit aed8783

Browse files
committed
forgotten
1 parent 8992067 commit aed8783

4 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
create or replace type body ut_composite_object is
2+
member procedure calc_execution_result(self in out nocopy ut_composite_object) is
3+
v_result integer(1) := ut_utils.tr_success;
4+
begin
5+
for i in 1 .. self.items.count loop
6+
v_result := greatest(self.items(i).execution_result.result, v_result);
7+
exit when v_result = ut_utils.tr_error;
8+
end loop;
9+
self.execution_result.result := v_result;
10+
end;
11+
12+
end;
13+
/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
create or replace type ut_composite_object force under ut_object
2+
(
3+
items ut_objects_list,
4+
5+
member procedure calc_execution_result(self in out nocopy ut_composite_object)
6+
) not final not instantiable
7+
/

source/types/ut_object.tps

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
create or replace type ut_object as object
2+
(
3+
name varchar2(250 char),
4+
execution_result ut_execution_result,
5+
object_type integer(1) --0 - assert, 1 -- test, 2 -- suite
6+
) not final not instantiable
7+
/

source/types/ut_objects_list.tps

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
create or replace type ut_objects_list is table of ut_object;
2+
/

0 commit comments

Comments
 (0)