Package-level declarations
Types
Link copied to clipboard
Scope for declaring call templates. It's used with dev.mokkery.every and dev.mokkery.verify. Currently, it's illegal to declare functions that accept this scope.
Functions
Link copied to clipboard
context(scope: MokkeryTemplatingScope)
inline fun <A, B, R> ctx(a: A, b: B, block: context(A, B) () -> R): R
inline fun <A, B, R> ctx(a: A, b: B, block: context(A, B) () -> R): R
context(scope: MokkeryTemplatingScope)
inline fun <A, B, C, R> ctx(a: A, b: B, c: C, block: context(A, B, C) () -> R): R
inline fun <A, B, C, R> ctx(a: A, b: B, c: C, block: context(A, B, C) () -> R): R
context(scope: MokkeryTemplatingScope)
inline fun <A, B, C, D, R> ctx(a: A, b: B, c: C, d: D, block: context(A, B, C, D) () -> R): R
inline fun <A, B, C, D, R> ctx(a: A, b: B, c: C, d: D, block: context(A, B, C, D) () -> R): R
context(scope: MokkeryTemplatingScope)
inline fun <A, B, C, D, E, R> ctx(a: A, b: B, c: C, d: D, e: E, block: context(A, B, C, D, E) () -> R): R
inline fun <A, B, C, D, E, R> ctx(a: A, b: B, c: C, d: D, e: E, block: context(A, B, C, D, E) () -> R): R
context(scope: MokkeryTemplatingScope)
inline fun <A, B, C, D, E, F, R> ctx(a: A, b: B, c: C, d: D, e: E, f: F, block: context(A, B, C, D, E, F) () -> R): R
inline fun <A, B, C, D, E, F, R> ctx(a: A, b: B, c: C, d: D, e: E, f: F, block: context(A, B, C, D, E, F) () -> R): R
Allows mocking methods with context parameters.