Skip to content

Commit 4b0646f

Browse files
committed
Update
1 parent aa9d034 commit 4b0646f

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

sentry-kotlin-multiplatform/src/appleTest/kotlin/io/sentry/kotlin/multiplatform/UpdateFromKmpEventChangesTest.apple.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import kotlinx.cinterop.convert
99
import kotlin.test.Test
1010
import kotlin.test.assertEquals
1111

12-
class UpdateFromKmpEventChangesTest {
12+
actual class UpdateFromKmpEventChangesTest {
1313
@Test
14-
fun `native value is untouched when before and after values are the same`() {
14+
actual fun `native value is untouched when before and after values are the same`() {
1515
val cocoaEvent = CocoaSentryEvent().apply {
1616
releaseName = "1.0"
1717
dist = "1"
@@ -56,7 +56,7 @@ class UpdateFromKmpEventChangesTest {
5656
}
5757

5858
@Test
59-
fun `native value is updated when before and after values are different`() {
59+
actual fun `native value is updated when before and after values are different`() {
6060
val cocoaEvent = CocoaSentryEvent().apply {
6161
releaseName = "1.0"
6262
dist = "1"

sentry-kotlin-multiplatform/src/commonJvmTest/kotlin/io/sentry/kotlin/multiplatform/UpdateFromKmpEventChangesTest.jvm.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import io.sentry.kotlin.multiplatform.protocol.User
88
import kotlin.test.Test
99
import kotlin.test.assertEquals
1010

11-
class UpdateFromKmpEventChangesTest {
11+
actual class UpdateFromKmpEventChangesTest {
1212
@Test
13-
fun `native value is untouched when before and after values are the same`() {
13+
actual fun `native value is untouched when before and after values are the same`() {
1414
val jvmEvent = JvmSentryEvent().apply {
1515
release = "1.0"
1616
dist = "1"
@@ -55,7 +55,7 @@ class UpdateFromKmpEventChangesTest {
5555
}
5656

5757
@Test
58-
fun `native value is updated when before and after values are different`() {
58+
actual fun `native value is updated when before and after values are different`() {
5959
val jvmEvent = JvmSentryEvent().apply {
6060
release = "1.0"
6161
dist = "1"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package io.sentry.kotlin.multiplatform
2+
3+
import io.sentry.kotlin.multiplatform.extensions.updateFromKmpEventChanges
4+
import io.sentry.kotlin.multiplatform.protocol.Breadcrumb
5+
import io.sentry.kotlin.multiplatform.protocol.Message
6+
import io.sentry.kotlin.multiplatform.protocol.SentryId
7+
import io.sentry.kotlin.multiplatform.protocol.User
8+
import kotlinx.cinterop.convert
9+
import kotlin.test.Test
10+
import kotlin.test.assertEquals
11+
12+
expect class UpdateFromKmpEventChangesTest {
13+
fun `native value is untouched when before and after values are the same`()
14+
fun `native value is updated when before and after values are different`
15+
}

0 commit comments

Comments
 (0)