From 757299278b99f24b3bfab2969bce850d6e4d567c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Fri, 1 May 2026 15:24:54 +0200 Subject: [PATCH] feat(suite): Allow ignoring prepared values --- suite/src/commonMain/kotlin/SuiteDsl.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/suite/src/commonMain/kotlin/SuiteDsl.kt b/suite/src/commonMain/kotlin/SuiteDsl.kt index 08b38f9..0a63a8a 100644 --- a/suite/src/commonMain/kotlin/SuiteDsl.kt +++ b/suite/src/commonMain/kotlin/SuiteDsl.kt @@ -186,6 +186,7 @@ interface TestDsl : PreparedDsl { /** * Realizes a [Prepared] value in the context of this test. */ + @IgnorableReturnValue suspend operator fun Prepared.invoke(): T = executeIn(this@TestDsl) @@ -210,6 +211,7 @@ interface TestDsl : PreparedDsl { * benefit from the other features of this library. * Sometimes, however, we just need a single value at a single point in time, which is why this function exists. */ + @IgnorableReturnValue suspend fun PreparedProvider.immediate(name: String = "Immediate value #${randomInt()}"): T = named(name)() -- 2.51.2