mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Stripped trailing whitespace from all source code lines
(replaces need for PRs #310 and #504)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
|
||||
|
||||
@interface iTchRunnerAppDelegate : NSObject <UIApplicationDelegate>
|
||||
@interface iTchRunnerAppDelegate : NSObject <UIApplicationDelegate>
|
||||
{
|
||||
UIWindow *window;
|
||||
}
|
||||
@@ -25,15 +25,15 @@
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
[window setUserInteractionEnabled:YES];
|
||||
[window setMultipleTouchEnabled:YES];
|
||||
|
||||
|
||||
CGRect screenRect = [[UIScreen mainScreen] applicationFrame];
|
||||
iTchRunnerMainView* view = [[iTchRunnerMainView alloc] initWithFrame:screenRect];
|
||||
|
||||
|
||||
[window addSubview:view];
|
||||
[window makeKeyAndVisible];
|
||||
arcSafeRelease( view );
|
||||
@@ -42,7 +42,7 @@
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
- (void)dealloc
|
||||
- (void)dealloc
|
||||
{
|
||||
#if !CATCH_ARC_ENABLED
|
||||
[window release];
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
- (void)applicationWillResignActive:(UIApplication *)application
|
||||
- (void)applicationWillResignActive:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||
@@ -62,17 +62,17 @@
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
- (void)applicationDidEnterBackground:(UIApplication *)application
|
||||
- (void)applicationDidEnterBackground:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||
If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
- (void)applicationWillEnterForeground:(UIApplication *)application
|
||||
- (void)applicationWillEnterForeground:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
- (void)applicationDidBecomeActive:(UIApplication *)application
|
||||
- (void)applicationDidBecomeActive:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
||||
@@ -90,7 +90,7 @@
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
- (void)applicationWillTerminate:(UIApplication *)application
|
||||
- (void)applicationWillTerminate:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Called when the application is about to terminate.
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
|
||||
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
|
||||
|
@@ -33,7 +33,7 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
-(id) initWithFrame:(CGRect)frame
|
||||
{
|
||||
if ((self = [super initWithFrame:frame]))
|
||||
if ((self = [super initWithFrame:frame]))
|
||||
{
|
||||
// Initialization code
|
||||
self.backgroundColor = [UIColor blackColor];
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
-(void) showAlert
|
||||
{
|
||||
{
|
||||
UIActionSheet* menu = [[UIActionSheet alloc] initWithTitle:@"Options"
|
||||
delegate:self
|
||||
cancelButtonTitle:nil
|
||||
@@ -72,7 +72,7 @@
|
||||
otherButtonTitles:@"Run all tests", nil];
|
||||
[menu showInView: self];
|
||||
arcSafeRelease( menu );
|
||||
|
||||
|
||||
}
|
||||
|
||||
// This is a copy & paste from Catch::Runner2 to get us bootstrapped (this is due to all be
|
||||
@@ -144,7 +144,7 @@ inline Catch::Totals runTestsForGroup( Catch::RunContext& context, const Catch::
|
||||
{
|
||||
const Catch::AssertionResult& resultInfo = *pResultInfo;
|
||||
std::ostringstream oss;
|
||||
|
||||
|
||||
if( resultInfo.hasExpression() )
|
||||
{
|
||||
oss << resultInfo.getExpression();
|
||||
@@ -174,7 +174,7 @@ inline Catch::Totals runTestsForGroup( Catch::RunContext& context, const Catch::
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if( resultInfo.hasExpression() )
|
||||
{
|
||||
oss << " for: " << resultInfo.getExpandedExpression();
|
||||
|
@@ -13,7 +13,7 @@
|
||||
|
||||
@protocol iTchRunnerDelegate
|
||||
|
||||
-(void) testWasRun: (const Catch::AssertionResult*) result;
|
||||
-(void) testWasRun: (const Catch::AssertionResult*) result;
|
||||
|
||||
@end
|
||||
|
||||
@@ -38,14 +38,14 @@ namespace Catch
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
static std::string getDescription
|
||||
()
|
||||
{
|
||||
return "Captures results for iOS runner";
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
size_t getSucceeded
|
||||
()
|
||||
@@ -53,7 +53,7 @@ namespace Catch
|
||||
{
|
||||
return m_totals.assertions.passed;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
size_t getFailed
|
||||
()
|
||||
@@ -61,20 +61,20 @@ namespace Catch
|
||||
{
|
||||
return m_totals.assertions.failed;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
void reset()
|
||||
{
|
||||
m_totals = Totals();
|
||||
}
|
||||
|
||||
|
||||
private: // IReporter
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
virtual void StartTesting
|
||||
()
|
||||
{}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
virtual void EndTesting
|
||||
(
|
||||
@@ -83,7 +83,7 @@ namespace Catch
|
||||
{
|
||||
m_totals = totals;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
virtual void Result
|
||||
(
|
||||
@@ -92,7 +92,7 @@ namespace Catch
|
||||
{
|
||||
[m_delegate testWasRun: &result];
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Deliberately unimplemented:
|
||||
virtual void StartGroup( const std::string& ){}
|
||||
@@ -107,7 +107,7 @@ namespace Catch
|
||||
|
||||
private:
|
||||
Totals m_totals;
|
||||
|
||||
|
||||
id<iTchRunnerDelegate> m_delegate;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user