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 more

    Declaration

    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 more

    Declaration

    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 more

    Declaration

    Swift

    public class AssertionRecorder : AssertionHandler
  • Undocumented

    See more

    Declaration

    Swift

    public class NMBExpectation : NSObject
  • Default handler for Nimble. This assertion handler passes failures along to XCTest.

    See more

    Declaration

    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 more

    Declaration

    Swift

    public class NimbleShortXCTestHandler : AssertionHandler
  • Undocumented

    See more

    Declaration

    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 more

    Declaration

    Swift

    public class FailureMessage : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public class NMBPredicate : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public class NMBObjCBeCloseToPredicate : NMBPredicate
  • Undocumented

    See more

    Declaration

    Swift

    final public class NMBPredicateResult : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    final public class NMBPredicateStatus : NSObject
  • Undocumented

    See more

    Declaration

    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 more

    Declaration

    Swift

    public final class SourceLocation : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    @objc
    public class NMBStringer : NSObject