mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-09 22:50:21 +08:00
Small perf improvement to RCTPerfStats and RCTBridgeModuleNameForClass
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
#import "RCTBridgeModule.h"
|
||||
#import "RCTModuleMethod.h"
|
||||
#import "RCTLog.h"
|
||||
|
||||
@@ -30,7 +31,7 @@ static BOOL RCTLogsError(void (^block)(void))
|
||||
return loggedError;
|
||||
}
|
||||
|
||||
@interface RCTModuleMethodTests : XCTestCase
|
||||
@interface RCTModuleMethodTests : XCTestCase <RCTBridgeModule>
|
||||
|
||||
@end
|
||||
|
||||
@@ -39,6 +40,8 @@ static BOOL RCTLogsError(void (^block)(void))
|
||||
CGRect _s;
|
||||
}
|
||||
|
||||
+ (NSString *)moduleName { return nil; }
|
||||
|
||||
- (void)doFooWithBar:(__unused NSString *)bar { }
|
||||
|
||||
- (void)testNonnull
|
||||
|
||||
Reference in New Issue
Block a user