Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_objc.hpp File Reference
#include "catch_objc_arc.hpp"
import <objc/runtime.h>
#include <string>
#include "catch_test_case_info.h"
#include "catch_string_manip.h"
#include "catch_tostring.h"
Include dependency graph for catch_objc.hpp:

Go to the source code of this file.

Classes

protocol  <OcFixture>
 
class  Catch::OcMethod
 

Namespaces

namespace  Catch
 
namespace  Catch::Detail
 
namespace  Catch::Matchers
 
namespace  Catch::Matchers::Impl
 
namespace  Catch::Matchers::Impl::NSStringMatchers
 

Macros

#define OC_MAKE_UNIQUE_NAME(root, uniqueSuffix)
 
#define OC_TEST_CASE2(name, desc, uniqueSuffix)
 
#define OC_TEST_CASE(name, desc)
 

Functions

std::string Catch::Detail::getAnnotation (Class cls, std::string const &annotationName, std::string const &testCaseName)
 
std::size_t Catch::registerTestMethods ()
 
Impl::NSStringMatchers::Equals Catch::Matchers::Equals (NSString *substr)
 
Impl::NSStringMatchers::Contains Catch::Matchers::Contains (NSString *substr)
 
Impl::NSStringMatchers::StartsWith Catch::Matchers::StartsWith (NSString *substr)
 
Impl::NSStringMatchers::EndsWith Catch::Matchers::EndsWith (NSString *substr)
 

Macro Definition Documentation

◆ OC_MAKE_UNIQUE_NAME

#define OC_MAKE_UNIQUE_NAME ( root,
uniqueSuffix )
Value:
root##uniqueSuffix

Definition at line 201 of file catch_objc.hpp.

◆ OC_TEST_CASE

#define OC_TEST_CASE ( name,
desc )
Value:
OC_TEST_CASE2( name, desc, __LINE__ )
#define OC_TEST_CASE2(name, desc, uniqueSuffix)
std::string name

Definition at line 213 of file catch_objc.hpp.

◆ OC_TEST_CASE2

#define OC_TEST_CASE2 ( name,
desc,
uniqueSuffix )
Value:
+(NSString*) OC_MAKE_UNIQUE_NAME( Catch_Name_test_, uniqueSuffix ) \
{ \
return @ name; \
} \
+(NSString*) OC_MAKE_UNIQUE_NAME( Catch_Description_test_, uniqueSuffix ) \
{ \
return @ desc; \
} \
-(void) OC_MAKE_UNIQUE_NAME( Catch_TestCase_test_, uniqueSuffix )
#define OC_MAKE_UNIQUE_NAME(root, uniqueSuffix)

Definition at line 202 of file catch_objc.hpp.

202#define OC_TEST_CASE2( name, desc, uniqueSuffix ) \
203+(NSString*) OC_MAKE_UNIQUE_NAME( Catch_Name_test_, uniqueSuffix ) \
204{ \
205return @ name; \
206} \
207+(NSString*) OC_MAKE_UNIQUE_NAME( Catch_Description_test_, uniqueSuffix ) \
208{ \
209return @ desc; \
210} \
211-(void) OC_MAKE_UNIQUE_NAME( Catch_TestCase_test_, uniqueSuffix )