ValueCheck

org.specs2.matcher.ValueCheck
See theValueCheck companion trait
object ValueCheck extends ValueChecks

Attributes

Companion
trait
Graph
Supertypes
trait ValueChecks
class Object
trait Matchable
class Any
Show all
Self type
ValueCheck.type

Members list

Value members

Concrete methods

def alwaysOk[T]: ValueCheck[T]
def toOptionCheck[T](valueCheck: ValueCheck[T]): ValueCheck[Option[T]]

Inherited methods

def valueIsTypedValueCheck[T](expected: T)(implicit di: Diffable[T]): ValueCheck[T]

an expected value can be used to check another value

an expected value can be used to check another value

Attributes

Inherited from:
ValueChecksBase

Implicits

Implicits

implicit def typedValueCheck[T : Diffable](expected: T): ValueCheck[T]

Inherited implicits

implicit def downcastBeEqualTypedValueCheck[T, S >: T](check: BeEqualTypedValueCheck[T]): ValueCheck[S]

a check of type T can be downcasted implicitly to a check of type S >: T

a check of type T can be downcasted implicitly to a check of type S >: T

Attributes

Inherited from:
ValueChecks
implicit def functionIsValueCheck[T, R : AsResult](f: T => R): ValueCheck[T]

a function returning an object having an AsResult instance can check a value

a function returning an object having an AsResult instance can check a value

Attributes

Inherited from:
ValueChecksLowImplicits
implicit def matcherIsValueCheck[T](m: Matcher[T]): ValueCheck[T]

a Matcher[T] can check a value

a Matcher[T] can check a value

Attributes

Inherited from:
ValueChecksBase
implicit def partialfunctionIsValueCheck[T, R : AsResult](f: PartialFunction[T, R]): ValueCheck[T]

a partial function returning an object having an AsResult instance can check a value

a partial function returning an object having an AsResult instance can check a value

Attributes

Inherited from:
ValueChecks