Package dispatch.internal.test

Types

Link copied to clipboard
interface Application
Link copied to clipboard
class AtomicCounterExtension : AfterEachCallback
Link copied to clipboard
abstract class BaseTest
Link copied to clipboard
class ExpectedFailureRule : TestRule
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Fails(expected: KClass<*>)

Indicates that a test function is expected to fail with the given exception type.

Link copied to clipboard
typealias Sample4 = Test
Link copied to clipboard
typealias Sample5 = Test
Link copied to clipboard
annotation class TrimAssertion

Functions

Link copied to clipboard
fun captureOutput(block: (out: PrintStream) -> Unit): List<String>
Link copied to clipboard
fun dispatcherName(): String
Link copied to clipboard
inline fun <T : Any, R : Any> T.getPrivateFieldByName(name: String): R
Link copied to clipboard
inline fun <T : Any, R : Any> T.getPrivateObjectFieldByName(name: String): R
Link copied to clipboard
fun MyCustomElement(): CoroutineContext
Link copied to clipboard
infix inline fun Job?.shouldBeOrChildOf(other: Job?)
Link copied to clipboard
inline fun Job.shouldBeSupervisorJob()
Link copied to clipboard
infix inline fun CoroutineContext.shouldEqualFolded(other: CoroutineContext)
Link copied to clipboard
infix fun CoroutineContext.shouldNotEqualFolded(other: CoroutineContext)
Link copied to clipboard
fun Any?.shouldPrint(vararg expected: String)
infix fun Any?.shouldPrint(expected: String)
Link copied to clipboard
inline fun <T> trimAssertion(testAction: () -> T): T

Properties

Link copied to clipboard
val blocking: ExecutorCoroutineDispatcher
Link copied to clipboard
val someDispatcherProvider: CoroutineContext