object TypeMatcherHelper
TypeMatcherHelper
is called by TypeMatcherMacro
to support a [Type]
and an [Type]
syntax.
This object needs to be public so that the macro-generated code can be compiled. It is expected that ScalaTest
users would ever need to use TypeMatcherHelper
directly.
- Source
- TypeMatcherHelper.scala
- Alphabetic
- By Inheritance
- TypeMatcherHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
aTypeMatcher(aType: ResultOfATypeInvocation[_]): Matcher[Any]
Create a type matcher for the given
ResultOfATypeInvocation
.Create a type matcher for the given
ResultOfATypeInvocation
.- aType
an instance of
ResultOfATypeInvocation
- returns
a type
Matcher
-
def
anTypeMatcher(anType: ResultOfAnTypeInvocation[_]): Matcher[Any]
Create a type matcher for the given
ResultOfAnTypeInvocation
.Create a type matcher for the given
ResultOfAnTypeInvocation
.- anType
an instance of
ResultOfAnTypeInvocation
- returns
a type
Matcher
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
assertAType(left: Any, aType: ResultOfATypeInvocation[_], prettifier: Prettifier, pos: Position): Assertion
Check if the given
left
is an instance of the type as described in the givenResultOfATypeInvocation
.Check if the given
left
is an instance of the type as described in the givenResultOfATypeInvocation
. ATestFailedException
will be thrown ifleft
is not an instance of the type given byResultOfATypeInvocation
.- left
the left-hand-side (LHS) to be checked for the type
- aType
an instance of
ResultOfATypeInvocation
-
def
assertATypeShouldBeTrue(left: Any, aType: ResultOfATypeInvocation[_], shouldBeTrue: Boolean, prettifier: Prettifier, pos: Position): Assertion
Based on
shouldBeTrue
value, check if the givenleft
is an instance of the type as described in the givenResultOfATypeInvocation
.Based on
shouldBeTrue
value, check if the givenleft
is an instance of the type as described in the givenResultOfATypeInvocation
. IfshouldBeTrue
is true, aTestFailedException
will be thrown ifleft
is not an instance of the type given byResultOfATypeInvocation
. IfshouldBeTrue
is false, aTestFailedException
will be thrown ifleft
is an instance of the type given byResultOfATypeInvocation
.- left
the left-hand-side (LHS) to be checked for the type
- aType
an instance of
ResultOfATypeInvocation
-
def
assertAnType(left: Any, anType: ResultOfAnTypeInvocation[_], prettifier: Prettifier, pos: Position): Assertion
Check if the given
left
is an instance of the type as described in the givenResultOfAnTypeInvocation
.Check if the given
left
is an instance of the type as described in the givenResultOfAnTypeInvocation
. ATestFailedException
will be thrown ifleft
is not an instance of the type given byResultOfAnTypeInvocation
.- left
the left-hand-side (LHS) to be checked for the type
- anType
an instance of
ResultOfAnTypeInvocation
-
def
assertAnTypeShouldBeTrue(left: Any, anType: ResultOfAnTypeInvocation[_], shouldBeTrue: Boolean, prettifier: Prettifier, pos: Position): Assertion
Based on
shouldBeTrue
value, check if the givenleft
is an instance of the type as described in the givenResultOfAnTypeInvocation
.Based on
shouldBeTrue
value, check if the givenleft
is an instance of the type as described in the givenResultOfAnTypeInvocation
. IfshouldBeTrue
is true, aTestFailedException
will be thrown ifleft
is not an instance of the type given byResultOfAnTypeInvocation
. IfshouldBeTrue
is false, aTestFailedException
will be thrown ifleft
is an instance of the type given byResultOfAnTypeInvocation
.- left
the left-hand-side (LHS) to be checked for the type
- anType
an instance of
ResultOfAnTypeInvocation
-
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
notATypeMatcher(aType: ResultOfATypeInvocation[_]): Matcher[Any]
Create a negated type matcher for the given
ResultOfATypeInvocation
.Create a negated type matcher for the given
ResultOfATypeInvocation
.- aType
an instance of
ResultOfATypeInvocation
- returns
a negated type
Matcher
-
def
notAnTypeMatcher(anType: ResultOfAnTypeInvocation[_]): Matcher[Any]
Create a negated type matcher for the given
ResultOfAnTypeInvocation
.Create a negated type matcher for the given
ResultOfAnTypeInvocation
.- anType
an instance of
ResultOfAnTypeInvocation
- returns
a negated type
Matcher
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )