This repository was archived by the owner on Aug 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 30
some android lint ref. #51
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
646bd77
some android lint ref.
marandaneto e81358b
code review
84cf002
Merge branch 'master' into ref/android_lint
f0c8a11
logging error if stack head is null
a7e7adc
fix merge conflict
2b4b666
test
marandaneto e05f804
skipping signingConfigWriterDebugAndroidTest task which hangs on trav…
marandaneto 1c077c2
Merge branch 'master' into ref/android_lint
marandaneto e33ee3a
commenting travis workaround
marandaneto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -2,9 +2,40 @@ package io.sentry.core | |
|
|
||
| import com.nhaarman.mockitokotlin2.mock | ||
| import com.nhaarman.mockitokotlin2.verify | ||
| import io.sentry.core.protocol.User | ||
| import kotlin.test.Test | ||
| import kotlin.test.assertEquals | ||
| import kotlin.test.assertNotNull | ||
| import kotlin.test.assertNotSame | ||
|
|
||
| class HubTest { | ||
|
|
||
| @Test | ||
| fun `when cloning Scope it returns the same values`() { | ||
| val scope = Scope() | ||
| scope.extra["test"] = "test" | ||
| val breadcrumb = Breadcrumb() | ||
| breadcrumb.message = "test" | ||
| scope.breadcrumbs.add(breadcrumb) | ||
| scope.level = SentryLevel.DEBUG | ||
| scope.transaction = "test" | ||
| scope.fingerprint.add("test") | ||
| scope.tags["test"] = "test" | ||
| val user = User() | ||
| user.email = "[email protected]" | ||
| scope.user = user | ||
|
|
||
| val clone = scope.clone() | ||
| assertNotNull(clone) | ||
| assertNotSame(scope, clone) | ||
| assertEquals("test", clone.extra["test"]) | ||
| assertEquals("test", clone.breadcrumbs[0].message) | ||
| assertEquals("test", scope.transaction) | ||
| assertEquals("test", scope.fingerprint[0]) | ||
| assertEquals("test", clone.tags["test"]) | ||
| assertEquals("[email protected]", clone.user.email) | ||
| } | ||
|
|
||
| @Test | ||
| fun `when hub is initialized, integrations are registed`() { | ||
| val integrationMock = mock<Integration>() | ||
|
|
||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.