Skip to content

Commit

Permalink
Fixes unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaher committed Oct 23, 2016
1 parent d6dfcfa commit 20abaf8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 43 deletions.
2 changes: 1 addition & 1 deletion Documentation/Why.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Well, all of the Rx operators are based on math and should be intuitive.

The good news is that about 10-15 operators cover most typical use cases. And that list already includes some of the familiar ones like `map`, `filter`, `zip`, `observeOn`, ...

There is a huge list of [all Rx operators](http://reactivex.io/documentation/operators.html) and list of all of the [currently supported RxSwift operators](API.md).
There is a huge list of [all Rx operators](http://reactivex.io/documentation/operators.html).

For each operator, there is a [marble diagram](http://reactivex.io/documentation/operators/retry.html) that helps to explain how it works.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ KVO observing, async operations and streams are all unified under [abstraction o
###### ... interact

* All of this is great, but it would be nice to talk with other people using RxSwift and exchange experiences. <br />[![Slack channel](http://rxswift-slack.herokuapp.com/badge.svg)](http://slack.rxswift.org) [Join Slack Channel](http://rxswift-slack.herokuapp.com)
* Report a problem using the library. [Open an Issue With Bug Template](ISSUE_TEMPLATE.md)
* Report a problem using the library. [Open an Issue With Bug Template](.github/ISSUE_TEMPLATE.md)
* Request a new feature. [Open an Issue With Feature Request Template](Documentation/NewFeatureRequestTemplate.md)


Expand Down
56 changes: 15 additions & 41 deletions Sources/RxCocoaRuntime/include/_RXObjCRuntime.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,10 @@
*/
extern BOOL RXAbortOnThreadingHazard;

/**
Error domain for RXObjCRuntime.
*/
/// Error domain for RXObjCRuntime.
extern NSString * __nonnull const RXObjCRuntimeErrorDomain;

/**
`userInfo` key with additional information is interceptor probably KVO.
*/
/// `userInfo` key with additional information is interceptor probably KVO.
extern NSString * __nonnull const RXObjCRuntimeErrorIsKVOKey;

typedef NS_ENUM(NSInteger, RXObjCRuntimeError) {
Expand All @@ -59,70 +55,48 @@ typedef NS_ENUM(NSInteger, RXObjCRuntimeError) {
RXObjCRuntimeErrorObservingMessagesWithUnsupportedReturnType = 9,
};

/**
Transforms normal selector into a selector with RX prefix.
*/
/// Transforms normal selector into a selector with RX prefix.
SEL _Nonnull RX_selector(SEL _Nonnull selector);

/**
Transforms selector into a unique pointer (because of Swift conversion rules)
*/
/// Transforms selector into a unique pointer (because of Swift conversion rules)
void * __nonnull RX_reference_from_selector(SEL __nonnull selector);

/**
Protocol that interception observers must implement.
*/
/// Protocol that interception observers must implement.
@protocol RXMessageSentObserver

/**
In case the same selector is being intercepted for a pair of base/sub classes,
this property will differentiate between interceptors that need to fire.
*/
/// In case the same selector is being intercepted for a pair of base/sub classes,
/// this property will differentiate between interceptors that need to fire.
@property (nonatomic, assign, readonly) IMP __nonnull targetImplementation;

-(void)messageSentWithArguments:(NSArray* __nonnull)arguments;
-(void)methodInvokedWithArguments:(NSArray* __nonnull)arguments;

@end

/**
Protocol that deallocating observer must implement.
*/
/// Protocol that deallocating observer must implement.
@protocol RXDeallocatingObserver

/**
In case the same selector is being intercepted for a pair of base/sub classes,
this property will differentiate between interceptors that need to fire.
*/
/// In case the same selector is being intercepted for a pair of base/sub classes,
/// this property will differentiate between interceptors that need to fire.
@property (nonatomic, assign, readonly) IMP __nonnull targetImplementation;

-(void)deallocating;

@end

/**
Ensures interceptor is installed on target object.
*/
/// Ensures interceptor is installed on target object.
IMP __nullable RX_ensure_observing(id __nonnull target, SEL __nonnull selector, NSError *__nullable * __nonnull error);

/**
Extracts arguments for `invocation`.
*/
/// Extracts arguments for `invocation`.
NSArray * __nonnull RX_extract_arguments(NSInvocation * __nonnull invocation);

/**
Returns `YES` in case method has `void` return type.
*/
/// Returns `YES` in case method has `void` return type.
BOOL RX_is_method_with_description_void(struct objc_method_description method);

/**
Returns `YES` in case methodSignature has `void` return type.
*/
/// Returns `YES` in case methodSignature has `void` return type.
BOOL RX_is_method_signature_void(NSMethodSignature * __nonnull methodSignature);

/**
Default value for `RXInterceptionObserver.targetImplementation`.
*/
/// Default value for `RXInterceptionObserver.targetImplementation`.
IMP __nonnull RX_default_target_implementation();

#endif

0 comments on commit 20abaf8

Please sign in to comment.