BoolForgery - xgouchet/Elmyr GitHub Wiki
@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY]) annotation class BoolForgery
Mark a field, property or method parameter as a primitive boolean forgery.
Parameters
probability - the probability the boolean will be true (default 0.5f)
Constructors
<init>
BoolForgery(probability: Float = Forge.HALF_PROBABILITY)
Mark a field, property or method parameter as a primitive boolean forgery.
Parameters
probability - the probability the boolean will be true (default 0.5f)
Properties
probability
val probability: Float
the probability the boolean will be true (default 0.5f)