Files
MapLibreParticleLab/platform/darwin/test/MLNTestAssertionHandler.h
mwilsnd 20d9e1028c Platform flattening overhaul (#1393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-07-26 17:50:34 +02:00

19 lines
524 B
Objective-C

#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>
NS_ASSUME_NONNULL_BEGIN
// Use to catch or log assertions that occur in dispatch blocks, timers or
// other asynchronous operations.
@interface MLNTestAssertionHandler : NSAssertionHandler
- (instancetype)initWithTestCase:(XCTestCase *)testCase;
@property (nonatomic, weak) XCTestCase *testCase;
// If YES, use `_XCTPreformattedFailureHandler` to "fail" the test,
// otherwise log the assert.
@property (nonatomic) BOOL shouldFail;
@end
NS_ASSUME_NONNULL_END