-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c69adf
commit bd2cb64
Showing
12 changed files
with
60 additions
and
43 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 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 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#import "SentryCrash.h" | ||
|
||
@interface SentryCrash (Test) | ||
@interface | ||
SentryCrash (Test) | ||
- (NSString *)getBundleName; | ||
@end |
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 |
---|---|---|
|
@@ -9,7 +9,8 @@ @implementation SentrySessionTests | |
|
||
- (void)testInitDefaultValues | ||
{ | ||
SentrySession *session = [[SentrySession alloc] initWithReleaseName:@"1.0.0" distinctId:@"some-id"]; | ||
SentrySession *session = [[SentrySession alloc] initWithReleaseName:@"1.0.0" | ||
distinctId:@"some-id"]; | ||
XCTAssertNotNil(session.sessionId); | ||
XCTAssertEqual(1, session.sequence); | ||
XCTAssertEqual(0, session.errors); | ||
|
@@ -26,7 +27,8 @@ - (void)testInitDefaultValues | |
|
||
- (void)testSerializeDefaultValues | ||
{ | ||
SentrySession *expected = [[SentrySession alloc] initWithReleaseName:@"1.0.0" distinctId:@"some-id"]; | ||
SentrySession *expected = [[SentrySession alloc] initWithReleaseName:@"1.0.0" | ||
distinctId:@"some-id"]; | ||
NSDictionary<NSString *, id> *json = [expected serialize]; | ||
SentrySession *actual = [[SentrySession alloc] initWithJSONObject:json]; | ||
|
||
|
@@ -51,7 +53,8 @@ - (void)testSerializeDefaultValues | |
|
||
- (void)testSerializeExtraFieldsEndedSessionWithNilStatus | ||
{ | ||
SentrySession *expected = [[SentrySession alloc] initWithReleaseName:@"[email protected]" distinctId:@"some-id"]; | ||
SentrySession *expected = [[SentrySession alloc] initWithReleaseName:@"[email protected]" | ||
distinctId:@"some-id"]; | ||
NSDate *timestamp = [NSDate date]; | ||
[expected endSessionExitedWithTimestamp:timestamp]; | ||
expected.environment = @"prod"; | ||
|
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#import "SentryInstallation.h" | ||
|
||
@interface SentryInstallation (Test) | ||
@property(class, nonatomic, readonly) NSMutableDictionary<NSString*, NSString*>* installationStringsByCacheDirectoryPaths; | ||
@interface | ||
SentryInstallation (Test) | ||
@property (class, nonatomic, readonly) | ||
NSMutableDictionary<NSString *, NSString *> *installationStringsByCacheDirectoryPaths; | ||
@end |
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