File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
jupiter-tests/src/test/kotlin/org/junit/jupiter/api Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ internal class KotlinAssertTimeoutAssertionsTests {
176
176
@Test
177
177
fun `assertTimeout with message supplier and value initialization in lambda` () {
178
178
val value: Int
179
+
180
+ @Suppress(" ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE" )
179
181
val valueInMessageSupplier: Int
180
182
181
183
assertTimeout(
@@ -324,6 +326,7 @@ internal class KotlinAssertTimeoutAssertionsTests {
324
326
325
327
@Test
326
328
fun `assertTimeoutPreemptively with message supplier and value initialization in lambda` () {
329
+ @Suppress(" ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE" )
327
330
val valueInMessageSupplier: Int
328
331
329
332
assertTimeoutPreemptively(
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ class KotlinAssertionsTests {
285
285
fun `assertInstanceOf with message supplier and compiler smart cast` () {
286
286
val maybeString: Any = " string"
287
287
288
+ @Suppress(" ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE" )
288
289
val valueInMessageSupplier: Int
289
290
290
291
assertInstanceOf<String >(maybeString) {
@@ -318,6 +319,7 @@ class KotlinAssertionsTests {
318
319
fun `assertNull with message supplier and compiler smart cast` () {
319
320
val nullableString: String? = null
320
321
322
+ @Suppress(" ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE" )
321
323
val valueInMessageSupplier: Int
322
324
323
325
assertNull(nullableString) {
You can’t perform that action at this time.
0 commit comments