Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit ac0cf22

Browse files
authored
Complete CaptureLogs conformance to WordPressLoggingDelegate (#720)
2 parents dda865b + 8d7f99f commit ac0cf22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WordPressAuthenticatorTests/Logging/LoggingTests.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ @interface CaptureLogs : NSObject<WordPressLoggingDelegate>
99

1010
@end
1111

12+
// We are leaving some protocol methods intentionally unimplemented to then test that calling them
13+
// will not cause a crash.
14+
//
15+
// See https://github.com/wordpress-mobile/WordPressAuthenticator-iOS/pull/720#issuecomment-1374952619
16+
#pragma clang diagnostic ignored "-Wprotocol"
1217
@implementation CaptureLogs
1318

1419
- (instancetype)init
@@ -31,6 +36,7 @@ - (void)logError:(NSString *)str
3136
}
3237

3338
@end
39+
#pragma clang diagnostic pop
3440

3541
@interface ObjCLoggingTest : XCTestCase
3642

0 commit comments

Comments
 (0)