Skip to content

Commit 426c247

Browse files
committed
Get rid of @InlineOnly in internal assertions
1 parent 06ed460 commit 426c247

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

core/common/test/assertions.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,20 @@ import kotlinx.datetime.DateTimeFormatException
99
import kotlin.test.assertFailsWith
1010
import kotlin.test.fail
1111

12-
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
13-
@kotlin.internal.InlineOnly
1412
inline fun <T> assertArithmeticFails(message: String? = null, f: () -> T) {
1513
assertFailsWith<DateTimeArithmeticException>(message) {
1614
val result = f()
1715
fail(result.toString())
1816
}
1917
}
2018

21-
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
22-
@kotlin.internal.InlineOnly
2319
inline fun <T> assertInvalidFormat(message: String? = null, f: () -> T) {
2420
assertFailsWith<DateTimeFormatException>(message) {
2521
val result = f()
2622
fail(result.toString())
2723
}
2824
}
2925

30-
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
31-
@kotlin.internal.InlineOnly
3226
inline fun <T> assertIllegalArgument(message: String? = null, f: () -> T) {
3327
assertFailsWith<IllegalArgumentException>(message) {
3428
val result = f()
@@ -39,4 +33,4 @@ inline fun <T> assertIllegalArgument(message: String? = null, f: () -> T) {
3933
/**
4034
* The number of iterations to perform in nondeterministic tests.
4135
*/
42-
const val STRESS_TEST_ITERATIONS = 1000
36+
const val STRESS_TEST_ITERATIONS = 1000

0 commit comments

Comments
 (0)