Mocks

eu.monniot.scala3mock.macros.Mocks
See theMocks companion object
trait Mocks

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ScalaMocks.type
object Mocks.type

Members list

Concise view

Value members

Concrete methods

inline def mock[T](using MockContext): T
inline def mockWithDebuggingOutput[T](using MockContext): T

Like mock but enable internal debug log for our macros. Use when you have found an issue and want to report it to the maintainers.

Like mock but enable internal debug log for our macros. Use when you have found an issue and want to report it to the maintainers.

Attributes

inline def when[R : Default](inline f: () => R): MockFunction0[R]
inline def when[T1, R : Default](inline f: T1 => R): MockFunction1[T1, R]
inline def when[T1, T2, R : Default](inline f: (T1, T2) => R): MockFunction2[T1, T2, R]
inline def when[T1, T2, T3, R : Default](inline f: (T1, T2, T3) => R): MockFunction3[T1, T2, T3, R]
inline def when[T1, T2, T3, T4, R : Default](inline f: (T1, T2, T3, T4) => R): MockFunction4[T1, T2, T3, T4, R]
inline def when[T1, T2, T3, T4, T5, R : Default](inline f: (T1, T2, T3, T4, T5) => R): MockFunction5[T1, T2, T3, T4, T5, R]
inline def when[T1, T2, T3, T4, T5, T6, R : Default](inline f: (T1, T2, T3, T4, T5, T6) => R): MockFunction6[T1, T2, T3, T4, T5, T6, R]
inline def when[T1, T2, T3, T4, T5, T6, T7, R : Default](inline f: (T1, T2, T3, T4, T5, T6, T7) => R): MockFunction7[T1, T2, T3, T4, T5, T6, T7, R]
inline def when[T1, T2, T3, T4, T5, T6, T7, T8, R : Default](inline f: (T1, T2, T3, T4, T5, T6, T7, T8) => R): MockFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]
inline def when[T1, T2, T3, T4, T5, T6, T7, T8, T9, R : Default](inline f: (T1, T2, T3, T4, T5, T6, T7, T8, T9) => R): MockFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]
inline def when[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R : Default](inline f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) => R): MockFunction10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R]