Package-level declarations
Types
Link copied to clipboard
interface TrimmedAsserts
Contains wrappers for Kotest's assertions which catch AssertionErrors and clean up stack traces before rethrowing.
Functions
Link copied to clipboard
private fun assertChanged(oldString: String, newString: String, token: Any, replacement: String): String
Asserts that oldString changes after replacing a token with replacement.
Link copied to clipboard
Asserts that the receiver string changes after calling String.replace with oldValue and replacement.
Asserts that the receiver string changes after calling String.replace with regex and replacement.
Link copied to clipboard
fun <T : Any> T?.requireNotNullOrFail(lazyMessage: () -> String = { "The receiver cannot be null, but it was. ¯\\_(ツ)_/¯" }): T
Asserts that the receiver is not null. If it is null, throws an AssertionError with the message provided by lazyMessage.
Link copied to clipboard
Link copied to clipboard