We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee7884 commit d59cbddCopy full SHA for d59cbdd
assertk/src/jvmMain/kotlin/assertk/assertions/throwable.kt
@@ -7,4 +7,11 @@ import assertk.Assert
7
/**
8
* Returns an assert on the throwable's stack trace.
9
*/
10
-fun Assert<Throwable>.stackTrace() = having("stackTrace") { it.stackTrace.map(StackTraceElement::toString) }
+fun Assert<Throwable>.havingStackTrace() = having("stackTrace") { it.stackTrace.map(StackTraceElement::toString) }
11
+
12
+@Deprecated(
13
+ message = "Function stackTrace has been renamed to havingStackTrace",
14
+ replaceWith = ReplaceWith("havingStackTrace()"),
15
+ level = DeprecationLevel.WARNING
16
+)
17
+fun Assert<Throwable>.stackTrace() = havingStackTrace()
0 commit comments