scala.testing

Show

trait Show extends AnyRef

Classes inheriting trait Show can test their member methods using the notattion meth(arg1, ..., argn), where meth is the name of the method and arg1,...,argn are the arguments. The only difference to a normal method call is the leading quote character ('). A quoted method call like the one above will produces a legible diagnostic to be printed on Console. It is of the form

   meth(arg1, ..., argn)  gives  <result>

where <result> is the result of evaluating the call.

Inherits

  1. AnyRef
  2. Any

Type Members

  1. class SymApply extends AnyRef

    The result class of wrapper symApply

Value Members

  1. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  2. def hashCode(): Int

    Returns a hash code value for the object

  3. def symApply(sym: Symbol): SymApply

    An implicit definition that adds an apply method to Symbol which forwards to test

  4. def test[A](f: Symbol, args: A*): String

    Apply method with name of given symbol f to given arguments and return a result diagnostics

  5. def toString(): String

    Returns a string representation of the object