Skip to content

Commit 886612d

Browse files
adinauerclaude
andcommitted
test(sentry): Rename mismatched MapObjectReader recovery tests
Rename the partially consumed MapObjectReader recovery tests so their names match the map iteration order. MapObjectReader reads map entries in reverse insertion order from its stack. The previous names described the surviving values as coming after the failure even though they are read before it. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8f20021 commit 886612d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry/src/test/java/io/sentry/util/MapObjectReaderTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class MapObjectReaderTest {
276276
}
277277

278278
@Test
279-
fun `nextMapOrNull keeps values after a partially consumed failing value`() {
279+
fun `nextMapOrNull keeps values before a partially consumed failing value`() {
280280
val actual =
281281
getValuesReader(
282282
linkedMapOf(
@@ -290,7 +290,7 @@ class MapObjectReaderTest {
290290
}
291291

292292
@Test
293-
fun `nextMapOfListOrNull keeps values after a partially consumed failing element`() {
293+
fun `nextMapOfListOrNull keeps values before a partially consumed failing element`() {
294294
val actual =
295295
getValuesReader(
296296
linkedMapOf(

0 commit comments

Comments
 (0)