Object/Class

zio.test

Predicate

Related Docs: class Predicate | package test

Permalink

object Predicate

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Predicate
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final val anything: Predicate[Any]

    Permalink

    Makes a new predicate that always succeeds.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def contains[A](element: A): Predicate[Iterable[A]]

    Permalink

    Makes a new predicate that requires an iterable contain the specified element.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. final def equals[A](expected: A): Predicate[A]

    Permalink

    Makes a new predicate that requires a value equal the specified value.

  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def exists[A](predicate: Predicate[A]): Predicate[Iterable[A]]

    Permalink

    Makes a new predicate that requires an iterable contain one element satisfying the given predicate.

  12. final def fails[E](predicate: Predicate[E]): Predicate[Exit[E, Any]]

    Permalink

    Makes a new predicate that requires an exit value to fail.

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def forall[A](predicate: Predicate[A]): Predicate[Iterable[A]]

    Permalink

    Makes a new predicate that requires an iterable contain only elements satisfying the given predicate.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def hasField[A, B](name: String, proj: (A) ⇒ B, predicate: Predicate[B]): Predicate[A]

    Permalink

    Makes a new predicate that focuses in on a field in a case class.

    Makes a new predicate that focuses in on a field in a case class.

    hasField("age", _.age, within(0, 10))
  17. final def hasSize[A](predicate: Predicate[Int]): Predicate[Iterable[A]]

    Permalink

    Makes a new predicate that requires the size of an iterable be satisfied by the specified predicate.

  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isCase[Sum, Proj](termName: String, term: (Sum) ⇒ Option[Proj], predicate: Predicate[Proj]): Predicate[Sum]

    Permalink

    Makes a new predicate that requires the sum type be a specified term.

    Makes a new predicate that requires the sum type be a specified term.

    isCase("Some", Some.unapply, anything)
  20. final def isFalse: Predicate[Boolean]

    Permalink

    Makes a new predicate that requires a value be true.

  21. final def isGreaterThan[A](reference: A)(implicit arg0: Numeric[A]): Predicate[A]

    Permalink

    Makes a new predicate that requires the numeric value be greater than the specified reference value.

  22. final def isGreaterThanEqual[A](reference: A)(implicit arg0: Numeric[A]): Predicate[A]

    Permalink

    Makes a new predicate that requires the numeric value be greater than or equal to the specified reference value.

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def isLeft[A](predicate: Predicate[A]): Predicate[Either[A, Nothing]]

    Permalink

    Makes a new predicate that requires a Left value satisfying a specified predicate.

  25. final def isLessThan[A](reference: A)(implicit arg0: Numeric[A]): Predicate[A]

    Permalink

    Makes a new predicate that requires the numeric value be greater than the specified reference value.

  26. final def isLessThanEqual[A](reference: A)(implicit arg0: Numeric[A]): Predicate[A]

    Permalink

    Makes a new predicate that requires the numeric value be greater than the specified reference value.

  27. final val isNone: Predicate[Option[Any]]

    Permalink

    Makes a new predicate that requires a Some value satisfying the specified predicate.

  28. final def isRight[A](predicate: Predicate[A]): Predicate[Either[Nothing, A]]

    Permalink

    Makes a new predicate that requires a Right value satisfying a specified predicate.

  29. final def isSome[A](predicate: Predicate[A]): Predicate[Option[A]]

    Permalink

    Makes a new predicate that requires a Some value satisfying the specified predicate.

  30. final def isSubtype[A](predicate: Predicate[A])(implicit C: ClassTag[A]): Predicate[Any]

    Permalink

    Makes a predicate that requires a value have the specified type.

  31. final def isTrue: Predicate[Boolean]

    Permalink

    Makes a new predicate that requires a value be true.

  32. final def isWithin[A](min: A, max: A)(implicit arg0: Numeric[A]): Predicate[A]

    Permalink

    Returns a new predicate that requires a numeric value to fall within a specified min and max (inclusive).

  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. final def not[A](predicate: Predicate[A]): Predicate[A]

    Permalink

    Makes a new predicate that negates the specified predicate.

  35. final val nothing: Predicate[Any]

    Permalink

    Makes a new predicate that always fails.

  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def predicate[A](render: String)(run: (⇒ A) ⇒ Assertion[Unit]): Predicate[A]

    Permalink

    Makes a new Predicate from a pretty-printing and a function.

  39. final def predicateDirect[A](render: String)(run: (⇒ A) ⇒ PredicateResult): Predicate[A]

    Permalink

    Makes a new Predicate from a pretty-printing and a function.

  40. final def predicateRec[A](render: String)(run: (Predicate[A], ⇒ A) ⇒ PredicateResult): Predicate[A]

    Permalink

    Makes a new Predicate from a pretty-printing and a function, passing the predicate itself to the specified function, so it can embed a recursive reference into the assert result.

  41. final def succeeds[A](predicate: Predicate[A]): Predicate[Exit[Any, A]]

    Permalink

    Makes a new predicate that requires an exit value to succeed.

  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. final def throws[A](predicate: Predicate[Throwable]): Predicate[A]

    Permalink

    Returns a new predicate that requires the expression to throw.

  44. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped