CompleteLastly

org.scalatest.CompleteLastly
See theCompleteLastly companion trait

Companion object that facilitates the importing of CompleteLastly members as an alternative to mixing it in.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited classlikes

class ResultOfCompleteInvocation[T](futuristicBlock: => T, futuristic: Futuristic[T])

Class that provides the lastly method of the complete-lastly syntax.

Class that provides the lastly method of the complete-lastly syntax.

Value parameters

futuristic

the futuristic typeclass instance

futuristicBlock

a by-name that produces a futuristic type

Attributes

Inherited from:
CompleteLastly
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def complete[T](completeBlock: => T)(implicit futuristic: Futuristic[T]): ResultOfCompleteInvocation[T]

Registers a block of code that produces any "futuristic" type (any type F for which an implicit Futuristic[F] instance is implicitly available), returning an object that offers a lastly method.

Registers a block of code that produces any "futuristic" type (any type F for which an implicit Futuristic[F] instance is implicitly available), returning an object that offers a lastly method.

See the main documentation for trait CompleteLastly for more detail.

Value parameters

completeBlock

cleanup code to execute whether the code passed to complete throws an exception or succesfully returns a futuristic value.

Attributes

Inherited from:
CompleteLastly