OCHamcrest
Classes | Functions
Helpers
Core API

Utilities for writing Matchers.
More...

Classes

class  HCInvocationMatcher
 Supporting class for matching a feature of an object. More...

Functions

NSMutableArray * HCCollectMatchers (id item1, va_list args)
 Returns an array of matchers from a variable-length comma-separated list terminated by nil.
void HCRequireNonNilObject (id obj)
 Throws an NSException if obj is nil.
id< HCMatcherHCWrapInMatcher (id matcherOrValue)
 Wraps argument in a matcher, if necessary.

Detailed Description

Utilities for writing Matchers.

Function Documentation

NSMutableArray* HCCollectMatchers ( id  item1,
va_list  args 
)

Returns an array of matchers from a variable-length comma-separated list terminated by nil.

void HCRequireNonNilObject ( id  obj)

Throws an NSException if obj is nil.

id<HCMatcher> HCWrapInMatcher ( id  matcherOrValue)

Wraps argument in a matcher, if necessary.

Returns:
The argument as-if if it is already a matcher, otherwise wrapped in an equalTo matcher.