class MockMakerInner[T] extends AnyRef
- Alphabetic
- By Inheritance
- MockMakerInner
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MockMakerInner(mockContext: C.Expr[MockContext], stub: Boolean, mockName: Option[C.Expr[String]])(implicit arg0: C.WeakTypeTag[T])
Type Members
-
class
MockNameGenerator
extends AnyRef
Class that is responsible for creating mock (and its methods) names so they can be reported on expectations error.
Class that is responsible for creating mock (and its methods) names so they can be reported on expectations error. It either uses mock name specified by user or asks mockContext to generate new one.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val anon: scala.reflect.macros.Universe.TypeName
- def anonClass(members: List[scala.reflect.macros.Universe.Tree]): scala.reflect.macros.Universe.Block
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildForwarderParams(methodType: scala.reflect.macros.Universe.Type): List[List[scala.reflect.macros.Universe.ValDef]]
- def classType(paramCount: Int): scala.reflect.macros.Universe.Type
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def forwarderImpl(m: scala.reflect.macros.Universe.MethodSymbol): scala.reflect.macros.Universe.ValOrDefDef
-
def
forwarderParamType(t: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree
Translates forwarder parameters into Trees.
Translates forwarder parameters into Trees. Also maps Java repeated params into Scala repeated params
- val forwarders: List[scala.reflect.macros.Universe.ValOrDefDef]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def initDef: scala.reflect.macros.Universe.DefDef
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPathDependentThis(t: scala.reflect.macros.Universe.Type): Boolean
- def make(): C.Expr[T]
- val members: List[scala.reflect.macros.Universe.ValOrDefDef]
- def methodDef(m: scala.reflect.macros.Universe.MethodSymbol, methodType: scala.reflect.macros.Universe.Type, body: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.DefDef
- def methodImpl(m: scala.reflect.macros.Universe.MethodSymbol, methodType: scala.reflect.macros.Universe.Type, body: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.DefDef
- def methodsNotInObject: Iterable[scala.reflect.macros.Universe.MethodSymbol]
- val methodsToMock: List[scala.reflect.macros.Universe.MethodSymbol]
- def mockFunctionClass(paramCount: Int): scala.reflect.macros.Universe.Type
- def mockFunctionName(m: scala.reflect.macros.Universe.MethodSymbol): scala.reflect.macros.Universe.TermName
- def mockMethod(m: scala.reflect.macros.Universe.MethodSymbol): scala.reflect.macros.Universe.ValDef
- val mockNameGenerator: MockNameGenerator
-
def
mockParamType(t: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree
Translates mock function parameters into Trees.
Translates mock function parameters into Trees. The difference between forwarderParamType is that: T* and T... are translated into Seq[T]
see issue #24
- val mocks: List[scala.reflect.macros.Universe.ValDef]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def resolvedType(m: scala.reflect.macros.Universe.Symbol): scala.reflect.macros.Universe.Type
- def stubFunctionClass(paramCount: Int): scala.reflect.macros.Universe.Type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val typeToMock: scala.reflect.macros.Universe.Type
- val utils: MacroUtils[ctx.type]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
ScalaMock
This is the documentation for ScalaMock
For an overview, see org.scalamock.