object
either
ï
Types and predicates for extended type-checking and handling of expected terms.
Availability:
logtalk_load(expecteds(loader))
Author: Paulo Moura
Version: 0:7:0
Date: 2021-01-03
Compilation flags:
static, context_switching_calls
Provides:
Uses:
Remarks:
Type-checking support: Defines a
either(ValueType, ErrorType)
type for checking expected terms where the value and error terms must be of the given types.QuickCheck support: Defines clauses for the
type::arbitrary/1-2
predicates to allow generating random values for theeither(ValueType, ErrorType)
type.
Inherited public predicates:
(none)
Public predicatesï
expecteds/2
ï
Returns the values stored in the expected terms that hold a value.
Compilation flags:
static
Template:
expecteds(Expecteds,Values)
Mode and number of proofs:
expecteds(+list(expected),-list)
- one
unexpecteds/2
ï
Returns the errors stored in the expected terms that hold an error.
Compilation flags:
static
Template:
unexpecteds(Expecteds,Errors)
Mode and number of proofs:
unexpecteds(+list(expected),-list)
- one
partition/3
ï
Retrieves and partitions the values and errors hold by the expected terms.
Compilation flags:
static
Template:
partition(Expecteds,Values,Errors)
Mode and number of proofs:
partition(+list(expected),-list,-list)
- one
Protected predicatesï
(no local declarations; see entity ancestors if any)
Private predicatesï
(no local declarations; see entity ancestors if any)
Operatorsï
(none)
See also