Package

cats

scalatest

Permalink

package scalatest

Visibility
  1. Public
  2. All

Type Members

  1. trait ValidatedMatchers extends AnyRef

    Permalink
  2. trait ValidatedValues extends AnyRef

    Permalink
  3. trait XorMatchers extends AnyRef

    Permalink
  4. trait XorValues extends AnyRef

    Permalink

Value Members

  1. object ValidatedMatchers extends ValidatedMatchers

    Permalink

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

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

    import ValidatedMatchers._
    result should beValid (100)
  2. object ValidatedValues extends ValidatedValues

    Permalink

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

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

    This will permit you to invoke a value method on an instance of a cats.data.Validated, which attempts to unwrap the Validated.Valid

    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 both valid and greater than 15.

    Otherwise your test will fail, indicating that it was an Invalid instead of Valid

    See also

    org.scalatest.OptionValues.Valuable

  3. object XorMatchers extends XorMatchers

    Permalink

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

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

    import XorMatchers._
    result should beRight(100)
  4. object XorValues extends XorValues

    Permalink

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

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

    This will permit you to invoke a value method on an instance of a cats.data.Xor, which attempts to unwrap the Valid.

    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 both an Xor.Vaild and has a value > 15.

    Otherwise your test will fail, indicating that it was an Invalid instead of Valid

    See also

    XorValues.XorValuable

Ungrouped