diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-09-16 17:04:27 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-09-16 17:04:27 +0000 |
commit | 080b28284751ae178608f45268765f6e0ae94287 (patch) | |
tree | 615c076d5a79621921eac431f5857f6e2d73c8c0 /Foundation/GTMObjC2Runtime.m | |
parent | 9ebf8b15cfb105864e97a0e8b005de8e6e5d5c42 (diff) |
[Author: dmaclach]
Add support for more complex unit test class hierarchies than what is
available out of the box in SenTestCase. I currently have the release notes
checked out as part of a separate change, and will update them accordingly
for this as well.
R=thomasvl,mrossetti
DELTA=80 (79 added, 0 deleted, 1 changed)
Diffstat (limited to 'Foundation/GTMObjC2Runtime.m')
-rw-r--r-- | Foundation/GTMObjC2Runtime.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Foundation/GTMObjC2Runtime.m b/Foundation/GTMObjC2Runtime.m index 9835654..2eb5dc3 100644 --- a/Foundation/GTMObjC2Runtime.m +++ b/Foundation/GTMObjC2Runtime.m @@ -58,6 +58,10 @@ Class class_getSuperclass(Class cls) { return cls->super_class; } +BOOL class_respondsToSelector(Class cls, SEL sel) { + return class_getInstanceMethod(cls, sel) != nil; +} + Method *class_copyMethodList(Class cls, unsigned int *outCount) { if (!cls) return NULL; |