Protocols
The following protocols are available globally.
-
Protocol for the assertion handler that Nimble uses for all expectations.
See moreDeclaration
Swift
public protocol AssertionHandler
-
Undocumented
See moreDeclaration
Swift
public protocol Expectation
-
Protocol for types that support contain() matcher.
See moreDeclaration
Swift
public protocol NMBContainer
-
Protocol for types that support only beEmpty(), haveCount() matchers
See moreDeclaration
Swift
public protocol NMBCollection
-
Protocol for types that support beginWith(), endWith(), beEmpty() matchers
See moreDeclaration
Swift
public protocol NMBOrderedCollection : NMBCollection
-
Undocumented
See moreDeclaration
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 moreDeclaration
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
Declaration
Swift
public protocol TestOutputStringConvertible