-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Test safeClassNameForObject: - Test safeObject:respondsToSelector: - Fix testAssumptionsAboutClasses: which was incorrectly written
- Loading branch information
1 parent
c7850df
commit 3b5e095
Showing
4 changed files
with
87 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// FLEXNewRootClass.h | ||
// FLEXTests | ||
// | ||
// Created by Tanner on 12/30/20. | ||
// Copyright © 2020 Flipboard. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/// Root class with one method | ||
OBJC_ROOT_CLASS | ||
@interface FLEXNewRootClass { | ||
Class isa OBJC_ISA_AVAILABILITY; | ||
} | ||
|
||
- (void)theOnlyMethod; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// FLEXNewRootClass.m | ||
// FLEXTests | ||
// | ||
// Created by Tanner on 12/30/20. | ||
// Copyright © 2020 Flipboard. All rights reserved. | ||
// | ||
|
||
#import "FLEXNewRootClass.h" | ||
#import <objc/runtime.h> | ||
|
||
@implementation FLEXNewRootClass | ||
|
||
+ (id)alloc { | ||
FLEXNewRootClass *obj = (__bridge id)calloc(1, class_getInstanceSize(self)); | ||
object_setClass(obj, self); | ||
return obj; | ||
} | ||
|
||
- (void)theOnlyMethod { } | ||
|
||
- (void)retain { } | ||
- (void)release { } | ||
|
||
@end |