Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
`ut_output_buffer` is now fully abstracted from caller #402
Conversation
… use reporter to get the output data. Introduced new abstract type: `ut_output_reporter_base`. Every reporter based on that type is supposed to use output buffer. So for every reporter of type `ut_output_reporter_base`, client can call functions: - get_lines - lines_to_dbms_output - get_lines_cursor Also, the reporters don't need to call parent reporter's method to finalize the reporting. New finalize event is added. There is no direct dependency between `ut_runner.run` and `ut_output_buffer` so we may now pass a reporter that doesn't report to output but saves data to table for example.
1 similar comment
2 similar comments
1 similar comment
2 similar comments
# Conflicts: # source/api/ut_runner.pkb
| end if; | ||
| end loop; | ||
|
|
||
| end fire_event; | ||
|
|
||
| overriding member procedure fire_event(self in out nocopy ut_event_listener, a_event_name varchar2) is |
Pazus
Jul 22, 2017
Member
I propose to call it fire on event to be consistent with other similar procedures
I propose to call it fire on event to be consistent with other similar procedures
jgebal
Jul 29, 2017
Author
Member
ok
ok
| @@ -60,7 +56,8 @@ create or replace type ut_reporter_base authid current_user as object( | |||
| member procedure after_calling_suite(self in out nocopy ut_reporter_base, a_suite in ut_logical_suite), | |||
|
|
|||
| -- run hooks continued | |||
| member procedure after_calling_run (self in out nocopy ut_reporter_base, a_run in ut_run) | |||
| member procedure after_calling_run (self in out nocopy ut_reporter_base, a_run in ut_run), | |||
| not instantiable member procedure finalize(self in out nocopy ut_reporter_base) | |||
Pazus
Jul 22, 2017
Member
Could you add an explaining comment so the new reporter developer understand what he has to implement there if his reporter is not an output reporter
Could you add an explaining comment so the new reporter developer understand what he has to implement there if his reporter is not an output reporter
jgebal
Jul 29, 2017
Author
Member
will do
will do
jgebal
Jul 29, 2017
Author
Member
@Pazus, or maybe it should have default (empty) implementation, like the rest of the methods?
@Pazus, or maybe it should have default (empty) implementation, like the rest of the methods?
1 similar comment
…s_object_model_fix
…s_object_model_fix # Conflicts: # source/api/ut_runner.pkb
2 similar comments
…ype. Created base type for output_buffers. Created header table for table output data. Updated `ut_output_reporter_base` to contain by default `ut_output_table_buffer` Updated tests for output buffers. Refreshed list of sources for RunAll script.
|
Closing this PR, will reopen from utPLSQL project feature branch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Resolves #391
The caller can use reporter to get the output data.
Introduced new abstract type:
ut_output_reporter_base.Every reporter based on that type is supposed to use output buffer.
So for every reporter of type
ut_output_reporter_base, client can call functions:Also, the reporters don't need to call parent reporter's method to finalize the reporting.
New finalize event is added.
There is no direct dependency between
ut_runner.runandut_output_bufferso we may now pass a reporter that doesn't report to output but saves data to table for example.