Skip to content

1.x: add RxJavaHooks tests, fix small bugs #4142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 29, 2016
Merged

Conversation

akarnokd
Copy link
Member

This PR adds unit tests for the new RxJavaHooks facility and fixes

  • Small mistakes in calling the right hook.
  • Dealing with constant Completable sources such as complete() and never(): they executed the hook on class initialization so they couldn't be properly overridden later via an onCreate hook. (This could affect the other constants and will be addressed separately.)

@codecov-io
Copy link

codecov-io commented Jun 28, 2016

Current coverage is 81.47%

Merging #4142 into 1.x will increase coverage by 0.23%

@@                1.x      #4142   diff @@
==========================================
  Files           257        257          
  Lines         16811      16823    +12   
  Methods           0          0          
  Messages          0          0          
  Branches       2547       2550     +3   
==========================================
+ Hits          13658      13707    +49   
+ Misses         2247       2218    -29   
+ Partials        906        898     -8   

Powered by Codecov. Last updated by d66d931...6d5473a

* not null (not verified)
* @param noHook if true, RxJavaHooks.onCreate won't be called
*/
private Completable(CompletableOnSubscribe onSubscribe, boolean noHook) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make positive boolean variable, useHook?

@akarnokd
Copy link
Member Author

Updated.

@akarnokd akarnokd merged commit ee63aff into ReactiveX:1.x Jun 29, 2016
@akarnokd akarnokd deleted the HooksTests branch June 29, 2016 12:47
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