Formatting Objective-C and Objective-C++ (#2492)

This commit is contained in:
Bart Louwers
2024-06-11 19:01:50 +02:00
committed by GitHub
parent 7437d800f6
commit 7b09da234a
153 changed files with 3099 additions and 2694 deletions

View File

@@ -1,11 +1,11 @@
#import <Foundation/Foundation.h>
__attribute__((visibility ("default")))
__attribute__((visibility("default")))
@interface IosTestRunner : NSObject
- (NSString*) getStyleResultPath;
- (NSString*) getMetricResultPath;
- (NSString*) getMetricPath;
- (BOOL) getTestStatus;
- (NSString*)getStyleResultPath;
- (NSString*)getMetricResultPath;
- (NSString*)getMetricPath;
- (BOOL)getTestStatus;
@end

View File

@@ -20,13 +20,16 @@ bool TestRunner::startTest(const std::string& manifestBasePath) {
int finishedTestCount = 0;
std::function<void()> testStatus = [&]() {
mbgl::Log::Info(mbgl::Event::General, "Current finished tests number is '" + std::to_string(++finishedTestCount) + "' ");
mbgl::Log::Info(mbgl::Event::General,
"Current finished tests number is '" + std::to_string(++finishedTestCount) + "' ");
};
mbgl::Log::Info(mbgl::Event::General, "Start running RenderTestRunner with manifest: '" + manifest + "' ");
auto result = mbgl::runRenderTests(static_cast<int>(argv.size() - 1), argv.data(), testStatus);
mbgl::Log::Info(mbgl::Event::General, "End running RenderTestRunner with manifest: '" + manifest + "' with result value " + std::to_string(result));
mbgl::Log::Info(mbgl::Event::General,
"End running RenderTestRunner with manifest: '" + manifest + "' with result value " +
std::to_string(result));
return result == 0;
};