This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds delegate to MGLNetworkConfiguration (#228)
- Loading branch information
Julian Rex
authored
Mar 27, 2020
1 parent
be6574d
commit 171ff94
Showing
15 changed files
with
506 additions
and
216 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
#import <XCTest/XCTest.h> | ||
#import <Mapbox/Mapbox.h> | ||
#import "MGLTestUtility.h" | ||
|
||
#define MGLTestFail(myself, ...) \ | ||
_XCTPrimitiveFail(myself, __VA_ARGS__) | ||
|
||
#define MGLTestAssert(myself, expression, ...) \ | ||
_XCTPrimitiveAssertTrue(myself, expression, @#expression, __VA_ARGS__) | ||
|
||
#define MGLTestAssertEqualWithAccuracy(myself, expression1, expression2, accuracy, ...) \ | ||
_XCTPrimitiveAssertEqualWithAccuracy(myself, expression1, @#expression1, expression2, @#expression2, accuracy, @#accuracy, __VA_ARGS__) | ||
#define MGLTestAssertNil(myself, expression, ...) \ | ||
_XCTPrimitiveAssertNil(myself, expression, @#expression, __VA_ARGS__) | ||
|
||
#define MGLTestAssertNotNil(myself, expression, ...) \ | ||
_XCTPrimitiveAssertNotNil(myself, expression, @#expression, __VA_ARGS__) | ||
|
||
#define MGLTestWarning(expression, format, ...) \ | ||
({ \ | ||
if (!(expression)) { \ | ||
NSString *message = [NSString stringWithFormat:format, ##__VA_ARGS__]; \ | ||
printf("warning: Test Case '%s' at line %d: '%s' %s\n", __PRETTY_FUNCTION__, __LINE__, #expression, message.UTF8String); \ | ||
} \ | ||
}) | ||
|
||
@interface MGLIntegrationTestCase: XCTestCase | ||
@end |
Oops, something went wrong.