MockKStaticScope

class MockKStaticScope(val staticTypes: KClass<*>) : MockKUnmockKScope(source)

Scope for static mockks. Part of DSL

Constructors

Link copied to clipboard
constructor(vararg staticTypes: KClass<*>)

Properties

Link copied to clipboard
val staticTypes: Array<out KClass<*>>

Functions

Link copied to clipboard
inline fun <T : Any> and(): MockKStaticScope
Link copied to clipboard
open override fun clear(answers: Boolean = true, recordedCalls: Boolean = true, childMocks: Boolean = true, verificationMarks: Boolean = true, exclusionRules: Boolean = true)
Link copied to clipboard
fun mock()
Link copied to clipboard
Link copied to clipboard
fun unmock()
Link copied to clipboard
inline fun <T> MockKUnmockKScope.use(block: () -> T): T

Wraps block of code for safe resource allocation and deallocation. Part of DSL