Packages

o

org.scalatest.matchers

TypeMatcherHelper

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
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypeMatcherHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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

  2. 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

  3. 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 given ResultOfATypeInvocation.

    Check if the given left is an instance of the type as described in the given ResultOfATypeInvocation. A TestFailedException will be thrown if left is not an instance of the type given by ResultOfATypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    aType

    an instance of ResultOfATypeInvocation

  4. def assertATypeShouldBeTrue(left: Any, aType: ResultOfATypeInvocation[_], shouldBeTrue: Boolean, prettifier: Prettifier, pos: Position): Assertion

    Based on shouldBeTrue value, check if the given left is an instance of the type as described in the given ResultOfATypeInvocation.

    Based on shouldBeTrue value, check if the given left is an instance of the type as described in the given ResultOfATypeInvocation. If shouldBeTrue is true, a TestFailedException will be thrown if left is not an instance of the type given by ResultOfATypeInvocation. If shouldBeTrue is false, a TestFailedException will be thrown if left is an instance of the type given by ResultOfATypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    aType

    an instance of ResultOfATypeInvocation

  5. 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 given ResultOfAnTypeInvocation.

    Check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation. A TestFailedException will be thrown if left is not an instance of the type given by ResultOfAnTypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    anType

    an instance of ResultOfAnTypeInvocation

  6. def assertAnTypeShouldBeTrue(left: Any, anType: ResultOfAnTypeInvocation[_], shouldBeTrue: Boolean, prettifier: Prettifier, pos: Position): Assertion

    Based on shouldBeTrue value, check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation.

    Based on shouldBeTrue value, check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation. If shouldBeTrue is true, a TestFailedException will be thrown if left is not an instance of the type given by ResultOfAnTypeInvocation. If shouldBeTrue is false, a TestFailedException will be thrown if left is an instance of the type given by ResultOfAnTypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    anType

    an instance of ResultOfAnTypeInvocation

  7. 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

  8. 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