ribs_test_core library

Test matchers for ribs_core types.

Provides isLeft, isRight, isSome, isNone, isValid, isInvalid, and isValidNel matchers for use with package:test.

Functions

isInvalid([Object? expected]) → Matcher
Returns a Matcher that matches an Invalid value.
isLeft([Object? matcher]) → Matcher
Returns a Matcher that matches a Left value.
isNone() → Matcher
Returns a Matcher that matches a None value.
isRight([Object? matcher]) → Matcher
Returns a Matcher that matches a Right value.
isSome([Object? matcher]) → Matcher
Returns a Matcher that matches a Some value.
isValid([Object? matcher]) → Matcher
Returns a Matcher that matches a Valid value.
isValidNel([Object? matcher]) → Matcher
Returns a Matcher that matches a Valid value for a ValidatedNel.