scala.testing

trait Show

[source: scala/testing/Show.scala]

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.

Method Summary
implicit def symApply (sym : Symbol) : SymApply
An implicit definition that adds an apply method to Symbol which forwards to `test`.
def test [A](f : Symbol, args : A*) : java.lang.String
Apply method with name of given symbol `f` to given arguments and return a result diagnostics.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
class SymApply (f : Symbol) extends AnyRef
The result class of wrapper symApply. Prints out diagnostics of method applications.
Method Details
implicit def symApply(sym : Symbol) : SymApply
An implicit definition that adds an apply method to Symbol which forwards to `test`.

def test[A](f : Symbol, args : A*) : java.lang.String
Apply method with name of given symbol `f` to given arguments and return a result diagnostics.