Skip to content

ut_output_buffer is now fully abstracted from caller#402

Closed
jgebal wants to merge 14 commits into
utPLSQL:developfrom
jgebal:feature/reporters_object_model_fix
Closed

ut_output_buffer is now fully abstracted from caller#402
jgebal wants to merge 14 commits into
utPLSQL:developfrom
jgebal:feature/reporters_object_model_fix

Conversation

@jgebal

@jgebal jgebal commented Jul 14, 2017

Copy link
Copy Markdown
Member

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:

  • 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.

… 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.
@jgebal jgebal self-assigned this Jul 14, 2017
@jgebal jgebal requested review from Pazus and viniciusam July 14, 2017 13:55
@coveralls

coveralls commented Jul 14, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.3%) to 91.656% when pulling d71e4fe on jgebal:feature/reporters_object_model_fix into 93dff9b on utPLSQL:develop.

@jgebal jgebal added this to the v3.0.2 milestone Jul 14, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.3%) to 91.694% when pulling 678cbcc on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

1 similar comment
@coveralls

coveralls commented Jul 14, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.3%) to 91.694% when pulling 678cbcc on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

@coveralls

coveralls commented Jul 14, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling e0e7cca on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 9ebea7a on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

2 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 9ebea7a on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 9ebea7a on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 061c7e9 on jgebal:feature/reporters_object_model_fix into f82dcac on utPLSQL:develop.

1 similar comment
@coveralls

coveralls commented Jul 15, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 061c7e9 on jgebal:feature/reporters_object_model_fix into f82dcac on utPLSQL:develop.

@jgebal jgebal modified the milestones: v3.1.0, v3.0.2 Jul 17, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 91.752% when pulling a7dc944 on jgebal:feature/reporters_object_model_fix into 0f2c2d7 on utPLSQL:develop.

2 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 91.752% when pulling a7dc944 on jgebal:feature/reporters_object_model_fix into 0f2c2d7 on utPLSQL:develop.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 91.752% when pulling a7dc944 on jgebal:feature/reporters_object_model_fix into 0f2c2d7 on utPLSQL:develop.

@coveralls

coveralls commented Jul 21, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 91.856% when pulling 0cf61b7 on jgebal:feature/reporters_object_model_fix into 55fe15f on utPLSQL:develop.

Comment thread source/core/types/ut_event_listener.tpb Outdated

end fire_event;

overriding member procedure fire_event(self in out nocopy ut_event_listener, a_event_name varchar2) is

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to call it fire on event to be consistent with other similar procedures

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

-- 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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pazus, or maybe it should have default (empty) implementation, like the rest of the methods?

@coveralls

coveralls commented Jul 24, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 91.791% when pulling 130eb60 on jgebal:feature/reporters_object_model_fix into 2a6dcf8 on utPLSQL:develop.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 91.791% when pulling 130eb60 on jgebal:feature/reporters_object_model_fix into 2a6dcf8 on utPLSQL:develop.

@coveralls

coveralls commented Jul 26, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 91.596% when pulling 75bd8ea on jgebal:feature/reporters_object_model_fix into 564a328 on utPLSQL:develop.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.404% when pulling 0e88d6d on jgebal:feature/reporters_object_model_fix into 6a527c6 on utPLSQL:develop.

2 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.404% when pulling 0e88d6d on jgebal:feature/reporters_object_model_fix into 6a527c6 on utPLSQL:develop.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.3%) to 92.404% when pulling 0e88d6d on jgebal:feature/reporters_object_model_fix into 6a527c6 on utPLSQL:develop.

jgebal and others added 3 commits July 29, 2017 01:54
…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.
@jgebal

jgebal commented Aug 2, 2017

Copy link
Copy Markdown
Member Author

Closing this PR, will reopen from utPLSQL project feature branch.

@jgebal jgebal closed this Aug 2, 2017
@Pazus Pazus modified the milestones: v3.0.3, v3.1.0 Aug 5, 2017
@jgebal jgebal deleted the feature/reporters_object_model_fix branch April 7, 2018 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants