Protocols

The following protocols are available globally.

  • Protocol for the assertion handler that Nimble uses for all expectations.

    See more

    Declaration

    Swift

    public protocol AssertionHandler
  • Undocumented

    See more

    Declaration

    Swift

    public protocol Expectation
  • Undocumented

    See more

    Declaration

    Swift

    public protocol AsyncableMatcher<Value>
  • Protocol for types that support contain() matcher.

    See more

    Declaration

    Swift

    public protocol NMBContainer
  • Protocol for types that support only beEmpty(), haveCount() matchers

    See more

    Declaration

    Swift

    public protocol NMBCollection
  • Protocol for types that support beginWith(), endWith(), beEmpty() matchers

    See more

    Declaration

    Swift

    public protocol NMBOrderedCollection : NMBCollection
  • Undocumented

    See more

    Declaration

    Swift

    public protocol NMBDoubleConvertible
  • Protocol for types to support beLessThan(), beLessThanOrEqualTo(), beGreaterThan(), beGreaterThanOrEqualTo(), and equal() matchers.

    Types that conform to Swift’s Comparable protocol will work implicitly too

    See more

    Declaration

    Swift

    @objc
    public protocol NMBComparable
  • A type with a customized test output text representation.

    This textual representation is produced when values will be printed in test runs, and may be useful when producing error messages in custom matchers.

    See also

    CustomDebugStringConvertible
    See more

    Declaration

    Swift

    public protocol TestOutputStringConvertible