Package

org.typelevel

scalatest

Permalink

package scalatest

Visibility
  1. Public
  2. All

Type Members

  1. trait DisjunctionMatchers extends AnyRef

    Permalink
  2. trait DisjunctionValues extends AnyRef

    Permalink
  3. trait TaskValues extends AnyRef

    Permalink
  4. trait ValidationMatchers extends AnyRef

    Permalink
  5. trait ValidationValues extends AnyRef

    Permalink

Value Members

  1. object DisjunctionValues extends DisjunctionValues

    Permalink

    Companion object for easy importing – rather than mixing in – to allow DisjunctionValues operations.

    Companion object for easy importing – rather than mixing in – to allow DisjunctionValues operations.

    This will permit you to invoke a value method on an instance of a scalaz.\/, which attempts to unwrap the right disjunction

    Similar to org.scalatest.OptionValues.Valuable

    Meant to allow you to make statements like:

      result.value should be > 15
    

    Where it only matches if result is \/-(9)

    Otherwise your test will fail, indicating that it was left instead of right

    See also

    org.scalatest.OptionValues.Valuable

  2. object TaskValues extends TaskValues

    Permalink

    Companion object for easy importing – rather than mixing in – to allow TaskValues operations.

    Companion object for easy importing – rather than mixing in – to allow TaskValues operations.

    This will permit you to invoke a runValue method on an instance of a scalaz.concurrent.Task, which attempts the Task and then attempts to return the right of the resulting disjunction.

    Meant to allow you to make statements like:

      task.runValue should be > 15
    

    Where it only matches if the task didn't fail and the result is \/-(9)

    Otherwise your test will fail, indicating that it was left instead of right.

    See also

    org.scalatest.OptionValues.Valuable

  3. object ValidationMatchers extends ValidationMatchers

    Permalink

    Import singleton in case you prefer to import rather than mix in

  4. object ValidationValues extends ValidationValues

    Permalink

    Companion object for easy importing – rather than mixing in – to allow ValidationValues operations.

    Companion object for easy importing – rather than mixing in – to allow ValidationValues operations.

    This will permit you to invoke a value method on an instance of a scalaz.Validation, which attempts to unwrap the right validation

    Similar to org.scalatest.OptionValues.Valuable

    Meant to allow you to make statements like:

      result.value should be > 15
    

    Where it only matches if result is Success(9)

    Otherwise your test will fail, indicating that it was left instead of right

    See also

    org.scalatest.OptionValues.Valuable

Ungrouped