PropCheck.BasicTypes.weighted_union
You're seeing just the function
weighted_union
, go back to PropCheck.BasicTypes module for more information.
Specs
A specialization of union/1
, where each type in list_of_types
is
assigned a frequency.
Frequencies must be Elixir expressions that evaluate to positive integers. Types with larger frequencies are more likely to be chosen by the random instance generator. The shrinking subsystem will ignore the frequencies and try to shrink towards the first type in the list.