public final class MockyAssertion

You can use this class if there is need to define custom assertion handler. You can use its static handler closure to alter default behaviour.

If it is nil, the default assert method would be used.

  • You can use it to define assertion behaviour. Leave blank to not assert at all.



    public static var handler: ((Bool, String, StaticString, UInt) -> Void)?