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

Skip to content

Commit 4b29c56

Browse files
changed formatting and comments
1 parent 9e79e6f commit 4b29c56

1 file changed

Lines changed: 78 additions & 17 deletions

File tree

source/reporters/ut_realtime_reporter.tps

Lines changed: 78 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,68 +17,129 @@ create or replace type ut_realtime_reporter force under ut_output_reporter_base(
1717
*/
1818

1919
/**
20-
* Private attribute containing the total number of all tests in the run (incl. disabled tests).
20+
* Total number of all tests in the run (incl. disabled tests).
2121
*/
2222
total_number_of_tests integer,
2323

2424
/**
25-
* Private attribute containing the currently executed test.
25+
* Currently executed test number.
2626
*/
2727
current_test_number integer,
2828

2929
/**
30-
* Private attribute containing the current indentation in logical tabs.
30+
* Current indentation in logical tabs.
3131
*/
3232
current_indent integer,
3333

3434
/**
3535
* The realtime reporter.
36-
* Provides test results in a XML format, to consumed by clients such as SQL Developer interested progressing details.
36+
* Provides test results in a XML format, for clients such as SQL Developer interested progressing details.
3737
*/
38-
constructor function ut_realtime_reporter(self in out nocopy ut_realtime_reporter) return self as result,
38+
constructor function ut_realtime_reporter(
39+
self in out nocopy ut_realtime_reporter
40+
) return self as result,
3941

4042
/**
4143
* Provides meta data of complete run in advance.
4244
* Used to show total tests and initialize a progress bar.
4345
*/
44-
overriding member procedure before_calling_run(self in out nocopy ut_realtime_reporter, a_run in ut_run),
46+
overriding member procedure before_calling_run(
47+
self in out nocopy ut_realtime_reporter,
48+
a_run in ut_run
49+
),
4550

4651
/**
47-
* Provides meta data of test to be called.
52+
* Provides closing tag with runtime summary.
4853
*/
49-
overriding member procedure before_calling_test(self in out nocopy ut_realtime_reporter, a_test in ut_test),
54+
overriding member procedure after_calling_run(
55+
self in out nocopy ut_realtime_reporter,
56+
a_run in ut_run
57+
),
5058

5159
/**
52-
* Provides meta data of a completed test with runtime and status.
60+
* Indicates the start of a test suite execution.
5361
*/
54-
overriding member procedure after_calling_test(self in out nocopy ut_realtime_reporter, a_test in ut_test),
62+
overriding member procedure before_calling_suite(
63+
self in out nocopy ut_realtime_reporter,
64+
a_suite in ut_logical_suite
65+
),
5566

5667
/**
5768
* Provides meta data of completed test suite with runtime.
5869
*/
59-
overriding member procedure after_calling_suite(self in out nocopy ut_realtime_reporter, a_suite in ut_logical_suite),
70+
overriding member procedure after_calling_suite(
71+
self in out nocopy ut_realtime_reporter,
72+
a_suite in ut_logical_suite
73+
),
74+
6075

6176
/**
62-
* Provides closing tag with runtime summary.
77+
* Indicates the start of a test.
78+
*/
79+
overriding member procedure before_calling_test(
80+
self in out nocopy ut_realtime_reporter,
81+
a_test in ut_test
82+
),
83+
84+
/**
85+
* Provides meta data of a completed test with runtime and status.
6386
*/
64-
overriding member procedure after_calling_run(self in out nocopy ut_realtime_reporter, a_run in ut_run),
87+
overriding member procedure after_calling_test(
88+
self in out nocopy ut_realtime_reporter,
89+
a_test in ut_test
90+
),
6591

6692
/**
6793
* Provides the description of this reporter.
6894
*/
6995
overriding member function get_description return varchar2,
7096

7197
/**
72-
* Private procedure to print a line of the resulting XML document using the current indentation.
98+
* Prints the start tag of an XML with an optional id attribute.
99+
*/
100+
member procedure print_start_node(
101+
self in out nocopy ut_realtime_reporter,
102+
a_name in varchar2,
103+
a_id in varchar2 default null
104+
),
105+
106+
/**
107+
* Prints the end tag of an XML node.
108+
*/
109+
member procedure print_end_node(
110+
self in out nocopy ut_realtime_reporter,
111+
a_name in varchar2
112+
),
113+
114+
/**
115+
* Prints a child node with content. Content will be XML encoded.
116+
*/
117+
member procedure print_node(
118+
self in out nocopy ut_realtime_reporter,
119+
a_name in varchar2,
120+
a_content in clob
121+
),
122+
123+
/**
124+
* Prints a child node with content. Content is passed 1:1 incl. new lines, etc. using CDATA.
125+
*/
126+
member procedure print_cdata_node(
127+
self in out nocopy ut_realtime_reporter,
128+
a_name in varchar2,
129+
a_content in clob
130+
),
131+
132+
/**
133+
* Prints a line of the resulting XML document using the current indentation.
73134
* a_indent_summand_before is added before printing a line.
74135
* a_indent_summand_after is added after printing a line.
75136
* All output is produced through this function.
76137
*/
77138
member procedure print_xml_fragment(
78139
self in out nocopy ut_realtime_reporter,
79-
a_fragment in varchar2,
80-
a_indent_summand_before in integer default 0,
81-
a_indent_summand_after in integer default 0
140+
a_fragment in clob,
141+
a_indent_summand_before in integer default 0,
142+
a_indent_summand_after in integer default 0
82143
)
83144
)
84145
not final

0 commit comments

Comments
 (0)