trait ValidatedMatchers
- Companion:
- object
Value members
Concrete methods
Checks if a cats.data.Validated
is a specific Invalid
element.
Checks if a cats.data.Validated
is a specific Invalid
element.
Checks if a cats.data.Validated
is an instance of Valid
.
Checks if a cats.data.Validated
is an instance of Valid
.
Checks if a cats.data.ValidatedNel
contains a failure element matching a specific type Usage:
Checks if a cats.data.ValidatedNel
contains a failure element matching a specific type Usage:
validationObj should haveAnInvalid[someErrorType]
Can also be used to test multiple elements: `
validationObj should (haveAnInvalid[someErrorType] and
haveAnInvalid[someOtherErrorType])
Checks if a cats.data.ValidatedNel
contains a specific failure element Usage:
Checks if a cats.data.ValidatedNel
contains a specific failure element Usage:
validationObj should haveInvalid (someErrorMessageOrObject)
Can also be used to test multiple elements: `
validationObj should (haveInvalid (someErrorMessageOrObject) and
haveInvalid (someOtherErrorMessageOrObject))