Skip to content

Commit 23f2656

Browse files
committed
Format code
1 parent f892b1f commit 23f2656

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

sentry-android-replay/src/test/java/io/sentry/android/replay/viewhierarchy/ComposeMaskingOptionsTest.kt

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,21 @@ class ComposeMaskingOptionsTest {
231231
// only assert masking on visible nodes — the production code's contract is
232232
// shouldMask = isVisible && ..., so invisible nodes (e.g. due to Robolectric
233233
// intermittently reporting zero bounds) correctly have shouldMask=false
234-
textNodes.filter { it.isVisible }.forEach {
235-
if ((it.layout as? ComposeTextLayout)?.layout?.layoutInput?.text?.text == "Make Request") {
236-
assertFalse(
237-
it.shouldMask,
238-
"Node with text ${(it.layout as? ComposeTextLayout)?.layout?.layoutInput?.text?.text} should not be masked",
239-
)
240-
} else {
241-
assertTrue(
242-
it.shouldMask,
243-
"Node with text ${(it.layout as? ComposeTextLayout)?.layout?.layoutInput?.text?.text} should be masked",
244-
)
234+
textNodes
235+
.filter { it.isVisible }
236+
.forEach {
237+
if ((it.layout as? ComposeTextLayout)?.layout?.layoutInput?.text?.text == "Make Request") {
238+
assertFalse(
239+
it.shouldMask,
240+
"Node with text ${(it.layout as? ComposeTextLayout)?.layout?.layoutInput?.text?.text} should not be masked",
241+
)
242+
} else {
243+
assertTrue(
244+
it.shouldMask,
245+
"Node with text ${(it.layout as? ComposeTextLayout)?.layout?.layoutInput?.text?.text} should be masked",
246+
)
247+
}
245248
}
246-
}
247249
}
248250

249251
@Test

0 commit comments

Comments
 (0)