Classes
The following classes are available globally.
-
A simple NSException subclass. It’s not required to subclass NSException (since the exception type is represented in the name) but this helps for identifying the exception through runtime type.
See moreDeclaration
Swift
@objc(BadInstructionException) public class BadInstructionException : NSException
-
AssertionDispatcher allows multiple AssertionHandlers to receive assertion messages.
@warning Does not fully dispatch if one of the handlers raises an exception. This is possible with XCTest-based assertion handlers.
See moreDeclaration
Swift
public class AssertionDispatcher : AssertionHandler
-
An AssertionHandler that silently records assertions that Nimble makes. This is useful for testing failure messages for matchers.
@see AssertionHandler
See moreDeclaration
Swift
public class AssertionRecorder : AssertionHandler
-
Undocumented
See moreDeclaration
Swift
public class NMBExpectation : NSObject
-
Default handler for Nimble. This assertion handler passes failures along to XCTest.
See moreDeclaration
Swift
public class NimbleXCTestHandler : AssertionHandler
-
Alternative handler for Nimble. This assertion handler passes failures along to XCTest by attempting to reduce the failure message size.
See moreDeclaration
Swift
public class NimbleShortXCTestHandler : AssertionHandler
-
Undocumented
See moreDeclaration
Swift
public class NMBExpectationMessage : NSObject
-
Encapsulates the failure message that matchers can report to the end user.
This is shared state between Nimble and matchers that mutate this value.
See moreDeclaration
Swift
public class FailureMessage : NSObject
-
Undocumented
See moreDeclaration
Swift
public class NMBPredicate : NSObject
-
Undocumented
See moreDeclaration
Swift
public class NMBObjCBeCloseToPredicate : NMBPredicate
-
Undocumented
See moreDeclaration
Swift
final public class NMBPredicateResult : NSObject
-
Undocumented
See moreDeclaration
Swift
final public class NMBPredicateStatus : NSObject
-
Undocumented
See moreDeclaration
Swift
public class NMBObjCRaiseExceptionPredicate : NMBPredicate
-
Without Mach exceptions or the Objective-C runtime, there’s nothing to put in the exception object. It’s really just a boolean – either a SIGILL was caught or not.
-
Undocumented
See moreDeclaration
Swift
public final class SourceLocation : NSObject
-
Undocumented
See moreDeclaration
Swift
@objc public class NMBStringer : NSObject