Package-level declarations

Types

Link copied to clipboard
expect interface Expect<out E>
actual interface Expect<out E>
actual interface Expect<out E>
Link copied to clipboard
Link copied to clipboard
interface ExpectCollection<out E> : Expect<Collection<E>?>
Link copied to clipboard
interface ExpectLambda : Expect<() -> Unit>
Link copied to clipboard
expect annotation class JsIgnore
actual typealias JsIgnore = Ignore
Link copied to clipboard
expect annotation class NativeIgnore
actual typealias NativeIgnore = Ignore

Functions

Link copied to clipboard
fun <E> expect(value: E): Expect<E>
fun <E> expect(vararg value: E): ExpectCollection<E>
fun <E> expect(collection: Collection<E>?): ExpectCollection<E>
inline fun <E> expect(value: E, builder: Expect<E>.() -> Unit): Expect<E>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun expectFunction(lambda: () -> Unit): ExpectLambda
Link copied to clipboard
inline fun <E> expectMany(value: Collection<E>, builder: ExpectCollection<E>.() -> Unit): ExpectCollection<E>
Link copied to clipboard
external fun <T> require(module: String): T
Link copied to clipboard
Link copied to clipboard
inline fun <E> Expect<Any?>.toBe(): E
Link copied to clipboard
inline fun <E> Expect<E>.toBeEqualTo(expected: E, message: String? = null)
Link copied to clipboard
fun <T : Comparable<T>> Expect<T>.toBeGreaterThan(expected: T)
Link copied to clipboard
Link copied to clipboard
inline fun <E> Expect<Any?>.toBeInstanceOf(message: String? = null): Expect<E>
Link copied to clipboard
fun <T : Comparable<T>> Expect<T>.toBeLessThan(expected: T)
Link copied to clipboard
Link copied to clipboard
inline fun <T> Expect<T>.toBeUnequalTo(expected: T, message: String? = null)
Link copied to clipboard
inline fun Expect<String?>.toContain(other: String, ignoreCase: Boolean = true, message: String? = null)
Link copied to clipboard
inline fun <T : Throwable> ExpectLambda.toFailWith(): T