Module Contents
alltypes
package assertk
Module Contents
sealed class Assert<out T>
sealed class AssertBlock<out T>
@DslMarker annotation class AssertkDsl
class FailingAssert<out T> : Assert<T>
annotation expect class PlatformName
sealed class Table
class Table1<C1> : Table
class Table1Builder : TableBuilder
class Table2<C1, C2> : Table
class Table2Builder : TableBuilder
class Table3<C1, C2, C3> : Table
class Table3Builder : TableBuilder
class Table4<C1, C2, C3, C4> : Table
class Table4Builder : TableBuilder
sealed class TableBuilder
ThreadLocalRef
class ValueAssert<out T> : Assert<T>
fun <T> Assert<T>.all(message: String = SoftFailure.defaultMessage, body: Assert<T>.() -> Unit): Unit
fun <T> assert(actual: T, name: String? = null): Assert<T>
fun <T> assert(f: () -> T): AssertBlock<T>
fun assertAll(f: () -> Unit): Unit
fun <T> assertThat(actual: T, name: String? = null): Assert<T>
fun <T> assertThat(getter: KProperty0<T>, name: String? = null): Assert<T>
fun <T> assertThat(f: () -> T): AssertBlock<T>
fun catch(f: () -> Unit): Throwable?
fun fail(error: AssertionError): Nothing
fun fail(message: String, expected: Any? = NONE, actual: Any? = NONE): Nothing
fun notifyFailure(e: Throwable): Unit
fun tableOf(name1: String): Table1Builder
fun tableOf(name1: String, name2: String): Table2Builder
fun tableOf(name1: String, name2: String, name3: String): Table3Builder
fun tableOf(name1: String, name2: String, name3: String, name4: String): Table4Builder
var <T> ThreadLocalRef<T>.value: T?
package assertk.assertions
Module Contents
fun <E, T : Iterable<E>> Assert<T>.atLeast(times: Int, f: (Assert<E>) -> Unit): Unit
fun <E, T : Iterable<E>> Assert<T>.atMost(times: Int, f: (Assert<E>) -> Unit): Unit
fun <ERROR CLASS><File>.bytes(): <ERROR CLASS>
fun <ERROR CLASS><Path>.bytes(): <ERROR CLASS><ByteArray>
fun Assert<Throwable>.cause(): Assert<Throwable?>
fun <T> Assert<Array<T>>.contains(element: Any?): Unit
fun Assert<Iterable<*>>.contains(element: Any?): Unit
fun <K, V> Assert<Map<K, V>>.contains(key: K, value: V): Unit
fun <K, V> Assert<Map<K, V>>.contains(element: <ERROR CLASS><K, V>): Unit
fun Assert<String>.contains(other: CharSequence, ignoreCase: Boolean = false): Unit
fun <T> Assert<Array<T>>.containsAll(vararg elements: Any?): Unit
fun Assert<Collection<*>>.containsAll(vararg elements: Any?): Unit
fun <K, V> Assert<Map<K, V>>.containsAll(vararg elements: <ERROR CLASS><K, V>): Unit
fun <T> Assert<Array<T>>.containsExactly(vararg elements: Any?): Unit
fun Assert<List<*>>.containsExactly(vararg elements: Any?): Unit
fun <T> Assert<Array<T>>.containsNone(vararg elements: Any?): Unit
fun Assert<Collection<*>>.containsNone(vararg elements: Any?): Unit
fun <K, V> Assert<Map<K, V>>.containsNone(vararg elements: <ERROR CLASS><K, V>): Unit
fun Assert<Collection<*>>.containsOnly(vararg elements: Any?): Unit
fun <K, V> Assert<Map<K, V>>.containsOnly(vararg elements: <ERROR CLASS><K, V>): Unit
fun <T> Assert<Array<T>>.doesNotContain(element: Any?): Unit
fun Assert<Iterable<*>>.doesNotContain(element: Any?): Unit
fun <K, V> Assert<Map<K, V>>.doesNotContain(key: K, value: V): Unit
fun <K, V> Assert<Map<K, V>>.doesNotContain(element: <ERROR CLASS><K, V>): Unit
fun Assert<String>.doesNotContain(other: CharSequence, ignoreCase: Boolean = false): Unit
fun <T : Any> Assert<T>.doesNotHaveClass(kclass: KClass<out T>): Unit
fun <T : Any> <ERROR CLASS><T>.doesNotHaveClass(jclass: Class<out T>): <ERROR CLASS>
fun <T> Assert<Array<T>>.each(f: (Assert<T>) -> Unit): Unit
fun <E> Assert<Iterable<E>>.each(f: (Assert<E>) -> Unit): Unit
fun Assert<String>.endsWith(other: String, ignoreCase: Boolean = false): Unit
fun <E, T : Iterable<E>> Assert<T>.exactly(times: Int, f: (Assert<E>) -> Unit): Unit
fun <ERROR CLASS><File>.exists(): <ERROR CLASS>
fun <ERROR CLASS><File>.extension(): <ERROR CLASS>
fun Assert<Throwable>.hasCause(cause: Throwable): Unit
fun <T : Any> Assert<T>.hasClass(kclass: KClass<out T>): Unit
fun <T : Any> <ERROR CLASS><T>.hasClass(jclass: Class<out T>): <ERROR CLASS>
fun <ERROR CLASS><File>.hasDirectChild(expected: File): <ERROR CLASS>
fun <ERROR CLASS><File>.hasExtension(expected: String): Unit
fun Assert<Any>.hasHashCode(hashCode: Int): Unit
fun Assert<CharSequence>.hasLength(length: Int): Unit
fun Assert<String>.hasLineCount(lineCount: Int): Unit
fun Assert<Throwable>.hasMessage(message: String?): Unit
fun <ERROR CLASS><File>.hasName(expected: String): Unit
fun Assert<Throwable>.hasNoCause(): Unit
fun <ERROR CLASS><InputStream>.hasNotSameContentAs(expected: InputStream): <ERROR CLASS>
fun <ERROR CLASS><File>.hasParent(expected: String): Unit
fun <ERROR CLASS><File>.hasPath(expected: String): Unit
fun Assert<Throwable>.hasRootCause(cause: Throwable): Unit
fun <ERROR CLASS><InputStream>.hasSameContentAs(expected: InputStream): <ERROR CLASS>
fun Assert<CharSequence>.hasSameLengthAs(other: CharSequence): Unit
fun <T> Assert<Array<T>>.hasSameSizeAs(other: Array<*>): Unit
fun Assert<Collection<*>>.hasSameSizeAs(other: Collection<*>): Unit
fun Assert<Map<*, *>>.hasSameSizeAs(other: Map<*, *>): Unit
fun Assert<Array<*>>.hasSize(size: Int): Unit
fun Assert<Collection<*>>.hasSize(size: Int): Unit
fun Assert<Map<*, *>>.hasSize(size: Int): Unit
fun <ERROR CLASS><File>.hasText(expected: String, charset: Charset = Charsets.UTF_8): Unit
fun <T> Assert<T>.hasToString(string: String): Unit
fun <T : Any> Assert<T>.hashCodeFun(): Assert<Int>
fun <T> Assert<Array<T>>.index(index: Int, f: (Assert<T>) -> Unit): Unit
fun <T> Assert<Array<T>>.index(index: Int): Assert<T>
fun <T> Assert<List<T>>.index(index: Int, f: (Assert<T>) -> Unit): Unit
fun <T> Assert<List<T>>.index(index: Int): Assert<T>
fun <A, B : Comparable<A>> Assert<B>.isBetween(start: A, end: A): Unit
fun Assert<Float>.isCloseTo(value: Float, delta: Float): Unit
fun Assert<Double>.isCloseTo(value: Double, delta: Double): Unit
fun <T : Any> <ERROR CLASS><T>.isDataClassEqualTo(expected: T): <ERROR CLASS>
fun <ERROR CLASS><File>.isDirectory(): <ERROR CLASS>
fun <ERROR CLASS><Path>.isDirectory(vararg options: LinkOption): <ERROR CLASS>
fun Assert<Array<*>>.isEmpty(): Unit
fun Assert<CharSequence>.isEmpty(): Unit
fun Assert<Collection<*>>.isEmpty(): Unit
fun Assert<Iterable<*>>.isEmpty(): Unit
fun Assert<Map<*, *>>.isEmpty(): Unit
fun <T> Assert<T>.isEqualTo(expected: Any?): Unit
fun <T> Assert<Array<T>>.isEqualTo(expected: Array<T>): Unit
fun Assert<String?>.isEqualTo(other: String?, ignoreCase: Boolean = false): Unit
fun <T : Any> <ERROR CLASS><T>.isEqualToIgnoringGivenProperties(other: T, vararg properties: KProperty1<T, Any>): Unit
fun <T> Assert<T>.isEqualToWithGivenProperties(other: T, vararg properties: KProperty1<T, Any>): Unit
fun <ERROR CLASS><Path>.isExecutable(): <ERROR CLASS>
fun Assert<Boolean>.isFalse(): Unit
fun <ERROR CLASS><File>.isFile(): <ERROR CLASS>
fun <A, B : Comparable<A>> Assert<B>.isGreaterThan(other: A): Unit
fun <A, B : Comparable<A>> Assert<B>.isGreaterThanOrEqualTo(other: A): Unit
fun <ERROR CLASS><File>.isHidden(): <ERROR CLASS>
fun <ERROR CLASS><Path>.isHidden(): <ERROR CLASS>
fun <T> Assert<T>.isIn(vararg values: T): Unit
fun <T : Any, S : T> Assert<T>.isInstanceOf(kclass: KClass<S>, f: (Assert<S>) -> Unit): Unit
fun <T : Any, S : T> Assert<T>.isInstanceOf(kclass: KClass<S>): Assert<S>
fun <T : Any, S : T> <ERROR CLASS><T>.isInstanceOf(jclass: Class<S>): <ERROR CLASS><S>
fun <T : Any, S : T> <ERROR CLASS><T>.isInstanceOf(jclass: Class<S>, f: (<ERROR CLASS><S>) -> Unit): Unit
fun <A, B : Comparable<A>> Assert<B>.isLessThan(other: A): Unit
fun <A, B : Comparable<A>> Assert<B>.isLessThanOrEqualTo(other: A): Unit
fun <T : Number> Assert<T>.isNegative(): Unit
fun Assert<Array<*>>.isNotEmpty(): Unit
fun Assert<CharSequence>.isNotEmpty(): Unit
fun Assert<Collection<*>>.isNotEmpty(): Unit
fun Assert<Iterable<*>>.isNotEmpty(): Unit
fun Assert<Map<*, *>>.isNotEmpty(): Unit
fun <T> Assert<T>.isNotEqualTo(expected: Any?): Unit
fun <T> Assert<Array<T>>.isNotEqualTo(expected: Array<T>): Unit
fun Assert<String?>.isNotEqualTo(other: String?, ignoreCase: Boolean = false): Unit
fun <ERROR CLASS><File>.isNotHidden(): <ERROR CLASS>
fun <T> Assert<T>.isNotIn(vararg values: T): Unit
fun <T : Any> Assert<T>.isNotInstanceOf(kclass: KClass<out T>): Unit
fun <T : Any> <ERROR CLASS><T>.isNotInstanceOf(jclass: Class<out T>): <ERROR CLASS>
fun <T : Any> Assert<T?>.isNotNull(f: (Assert<T>) -> Unit): Unit
fun <T : Any> Assert<T?>.isNotNull(): Assert<T>
fun <T> Assert<T>.isNotSameAs(expected: Any?): Unit
fun <T : Number> Assert<T>.isNotZero(): Unit
fun <T : Any> Assert<T?>.isNull(): Unit
fun Assert<Array<*>?>.isNullOrEmpty(): Unit
fun Assert<CharSequence?>.isNullOrEmpty(): Unit
fun Assert<Collection<*>?>.isNullOrEmpty(): Unit
fun Assert<Map<*, *>?>.isNullOrEmpty(): Unit
fun <T : Number> Assert<T>.isPositive(): Unit
fun <ERROR CLASS><Path>.isReadable(): <ERROR CLASS>
fun <ERROR CLASS><Path>.isRegularFile(vararg options: LinkOption): <ERROR CLASS>
fun <T> Assert<T>.isSameAs(expected: T): Unit
fun <ERROR CLASS><Path>.isSameFileAs(expected: Path): <ERROR CLASS>
fun <A, B : Comparable<A>> Assert<B>.isStrictlyBetween(start: A, end: A): Unit
fun <ERROR CLASS><Path>.isSymbolicLink(): <ERROR CLASS>
fun Assert<Boolean>.isTrue(): Unit
fun <ERROR CLASS><Path>.isWritable(): <ERROR CLASS>
fun <T : Number> Assert<T>.isZero(): Unit
fun <T : Any> <ERROR CLASS><T>.jClass(): <ERROR CLASS>
fun <T : Any> Assert<T>.kClass(): Assert<KClass<out T>>
fun <K, V> Assert<Map<K, V>>.key(key: K, f: (Assert<V>) -> Unit): Unit
fun <K, V> Assert<Map<K, V>>.key(key: K): Assert<V>
fun Assert<CharSequence>.length(): Assert<Int>
fun <ERROR CLASS><Path>.lines(charset: Charset = Charsets.UTF_8): <ERROR CLASS><List<String>>
fun Assert<String>.matches(regex: <ERROR CLASS>): Unit
fun <T> Assert<T>.matchesPredicate(f: (T) -> Boolean): Unit
fun Assert<Throwable>.message(): Assert<String?>
fun <ERROR CLASS><File>.name(): <ERROR CLASS>
fun <E> Assert<Iterable<E>>.none(f: (Assert<E>) -> Unit): Unit
fun <ERROR CLASS><File>.parent(): <ERROR CLASS>
fun <ERROR CLASS><File>.path(): <ERROR CLASS>
fun <T, P> Assert<T>.prop(name: String, : (T) -> P): Assert<P>
fun <T, P> <ERROR CLASS><T>.prop(callable: KCallable<P>): <ERROR CLASS>
fun Assert<Throwable>.rootCause(): Assert<Throwable>
fun Assert<Array<*>>.size(): Assert<Int>
fun Assert<Collection<*>>.size(): Assert<Int>
fun Assert<Map<*, *>>.size(): Assert<Int>
fun <ERROR CLASS><Throwable>.stackTrace(): <ERROR CLASS>
fun Assert<String>.startsWith(other: String, ignoreCase: Boolean = false): Unit
fun <ERROR CLASS><File>.text(charset: Charset = Charsets.UTF_8): <ERROR CLASS>
fun <T> Assert<T>.toStringFun(): Assert<String>
package assertk.assertions.support