Declaration | |
---|---|
From | @property (readonly, copy) NSString *name |
To | @property (readonly, copy, nonnull) NSString *name |
Declaration | |
---|---|
From | @property (readonly) Class testRunClass |
To | @property (readonly, nonnull) Class testRunClass |
Declaration | |
---|---|
From | - (void)performTest:(XCTestRun *)run |
To | - (void)performTest:(nonnull XCTestRun *)run |
Declaration | Availability | |
---|---|---|
From | - (XCTestRun *)run | Available |
To | - (nonnull XCTestRun *)run | Deprecated |
Declaration | |
---|---|
From | + (id)testCaseWithInvocation:(NSInvocation *)invocation |
To | + (nonnull instancetype)testCaseWithInvocation:(nullable NSInvocation *)invocation |
Declaration | |
---|---|
From | - (id)initWithInvocation:(NSInvocation *)invocation |
To | - (nonnull instancetype)initWithInvocation:(nullable NSInvocation *)invocation |
Declaration | |
---|---|
From | + (id)testCaseWithSelector:(SEL)selector |
To | + (nonnull instancetype)testCaseWithSelector:(nonnull SEL)selector |
Declaration | |
---|---|
From | - (id)initWithSelector:(SEL)selector |
To | - (nonnull instancetype)initWithSelector:(nonnull SEL)selector |
Declaration | |
---|---|
From | @property (strong) NSInvocation *invocation |
To | @property (strong, nullable) NSInvocation *invocation |
Declaration | |
---|---|
From | - (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected |
To | - (void)recordFailureWithDescription:(nonnull NSString *)description inFile:(nonnull NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected |
Declaration | |
---|---|
From | + (NSArray *)testInvocations |
To | + (nonnull NSArray<NSInvocation *> *)testInvocations |
Declaration | |
---|---|
From | NSString *const XCTPerformanceMetric_WallClockTime |
To | NSString *const _Nonnull XCTPerformanceMetric_WallClockTime |
Declaration | |
---|---|
From | + (NSArray *)defaultPerformanceMetrics |
To | + (nonnull NSArray<NSString *> *)defaultPerformanceMetrics |
Declaration | |
---|---|
From | - (void)measureBlock:(void (^)(void))block |
To | - (void)measureBlock:(nonnull void (^)(void))block |
Declaration | |
---|---|
From | - (void)measureMetrics:(NSArray *)metrics automaticallyStartMeasuring:(BOOL)automaticallyStartMeasuring forBlock:(void (^)(void))block |
To | - (void)measureMetrics:(nonnull NSArray<NSString *> *)metrics automaticallyStartMeasuring:(BOOL)automaticallyStartMeasuring forBlock:(nonnull void (^)(void))block |
Declaration | |
---|---|
From | + (XCTestSuite *)defaultTestSuite |
To | + (nonnull XCTestSuite *)defaultTestSuite |
Declaration | |
---|---|
From | - (XCTestExpectation *)expectationWithDescription:(NSString *)description |
To | - (nonnull XCTestExpectation *)expectationWithDescription:(nonnull NSString *)description |
Declaration | |
---|---|
From | typedef void (^XCWaitCompletionHandler)(NSError *error) |
To | typedef void (^XCWaitCompletionHandler)(NSError * _Nullable error) |
Declaration | |
---|---|
From | - (void)waitForExpectationsWithTimeout:(NSTimeInterval)timeout handler:(XCWaitCompletionHandler)handlerOrNil |
To | - (void)waitForExpectationsWithTimeout:(NSTimeInterval)timeout handler:(nullable XCWaitCompletionHandler)handler |
Declaration | |
---|---|
From | - (XCTestExpectation *)keyValueObservingExpectationForObject:(id)objectToObserve keyPath:(NSString *)keyPath expectedValue:(id)expectedValue |
To | - (nonnull XCTestExpectation *)keyValueObservingExpectationForObject:(nonnull id)objectToObserve keyPath:(nonnull NSString *)keyPath expectedValue:(nullable id)expectedValue |
Declaration | |
---|---|
From | typedef BOOL (^XCKeyValueObservingExpectationHandler)(id observedObject, NSDictionary *change) |
To | typedef BOOL (^XCKeyValueObservingExpectationHandler)(id _Nonnull observedObject, NSDictionary * _Nonnull change) |
Declaration | |
---|---|
From | - (XCTestExpectation *)keyValueObservingExpectationForObject:(id)objectToObserve keyPath:(NSString *)keyPath handler:(XCKeyValueObservingExpectationHandler)handlerOrNil |
To | - (nonnull XCTestExpectation *)keyValueObservingExpectationForObject:(nonnull id)objectToObserve keyPath:(nonnull NSString *)keyPath handler:(nullable XCKeyValueObservingExpectationHandler)handler |
Declaration | |
---|---|
From | typedef BOOL (^XCNotificationExpectationHandler)(NSNotification *notification) |
To | typedef BOOL (^XCNotificationExpectationHandler)(NSNotification * _Nonnull notification) |
Declaration | |
---|---|
From | - (XCTestExpectation *)expectationForNotification:(NSString *)notificationName object:(id)objectToObserve handler:(XCNotificationExpectationHandler)handlerOrNil |
To | - (nonnull XCTestExpectation *)expectationForNotification:(nonnull NSString *)notificationName object:(nullable id)objectToObserve handler:(nullable XCNotificationExpectationHandler)handler |
Declaration | |
---|---|
From | - (void)recordFailureInTest:(XCTestCase *)testCase withDescription:(NSString *)description inFile:(NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected |
To | - (void)recordFailureInTest:(nonnull XCTestCase *)testCase withDescription:(nonnull NSString *)description inFile:(nonnull NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected |
Declaration | |
---|---|
From | + (id)testRunWithTest:(XCTest *)test |
To | + (nonnull instancetype)testRunWithTest:(nonnull XCTest *)test |
Declaration | |
---|---|
From | - (id)initWithTest:(XCTest *)test |
To | - (nonnull instancetype)initWithTest:(nonnull XCTest *)test |
Declaration | |
---|---|
From | @property (readonly, strong) XCTest *test |
To | @property (readonly, strong, nonnull) XCTest *test |
Declaration | |
---|---|
From | @property (readonly, copy) NSDate *startDate |
To | @property (readonly, copy, nullable) NSDate *startDate |
Declaration | |
---|---|
From | @property (readonly, copy) NSDate *stopDate |
To | @property (readonly, copy, nullable) NSDate *stopDate |
Declaration | |
---|---|
From | - (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected |
To | - (void)recordFailureWithDescription:(nonnull NSString *)description inFile:(nullable NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected |
Declaration | |
---|---|
From | + (id)defaultTestSuite |
To | + (nonnull instancetype)defaultTestSuite |
Declaration | |
---|---|
From | + (id)testSuiteForBundlePath:(NSString *)bundlePath |
To | + (nonnull instancetype)testSuiteForBundlePath:(nonnull NSString *)bundlePath |
Declaration | |
---|---|
From | + (id)testSuiteForTestCaseWithName:(NSString *)name |
To | + (nonnull instancetype)testSuiteForTestCaseWithName:(nonnull NSString *)name |
Declaration | |
---|---|
From | + (id)testSuiteForTestCaseClass:(Class)testCaseClass |
To | + (nonnull instancetype)testSuiteForTestCaseClass:(nonnull Class)testCaseClass |
Declaration | |
---|---|
From | + (id)testSuiteWithName:(NSString *)name |
To | + (nonnull instancetype)testSuiteWithName:(nonnull NSString *)name |
Declaration | |
---|---|
From | - (id)initWithName:(NSString *)name |
To | - (nonnull instancetype)initWithName:(nonnull NSString *)name |
Declaration | |
---|---|
From | - (void)addTest:(XCTest *)test |
To | - (void)addTest:(nonnull XCTest *)test |
Declaration | |
---|---|
From | @property (readonly, copy) NSArray *tests |
To | @property (readonly, copy, nonnull) NSArray<__kindof XCTest *> *tests |
Declaration | |
---|---|
From | @property (readonly, copy) NSArray *testRuns |
To | @property (readonly, copy, nonnull) NSArray<XCTestRun *> *testRuns |
Declaration | |
---|---|
From | - (void)addTestRun:(XCTestRun *)testRun |
To | - (void)addTestRun:(nonnull XCTestRun *)testRun |